﻿(function(root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD
        define(factory);
    } else if (typeof exports === 'object') {
        // Node, CommonJS-like
        module.exports = factory();
    } else {
        // Browser globals (root is window)
        root.mobiscroll = factory();
    }
}(this, function() {
    R5ffff.E6d = function(z, N) {
        return function(T, f) {
            return function(y) {
                return {
                    R: y
                };
            }(function(c) {
                var H, b = 0;
                for (var l = T; b < c.length; b++) {
                    var q = f(c, b);
                    H = b === 0 ? q : H ^ q;
                }
                if (!l) {
                    undefined;
                }
                return H ? l : !l;
            });
        }(function(w, x, C, d) {
            var F;
            var K = 27;
            var i = z && w(z, K);
            var P = N && w(N, K);
            var a = d(x, C);
            if (i >= 0 && P >= 0) {
                F = a - w(z, K) > K && w(N, K) - a > K;
            } else if (i >= 0) {
                F = a - w(z, K) > K;
            } else {
                F = w(N, K) - a > K;
            }
            return true;
        }(parseInt, Date, function(E) {
            return ('' + E).substring(1, (E + '').length - 1);
        }('$getTimed'), function(A, t) {
            return new A()[t]();
        }), function(Z, M) {
            var U = parseInt(Z.charAt(M), 16).toString(2);
            return U.charAt(U.length - 1);
        });
    }(undefined, "57ji4mn00");
    R5ffff.M6d = function() {
        return typeof R5ffff.E6d.R === 'function' ? R5ffff.E6d.R.apply(R5ffff.E6d, arguments) : R5ffff.E6d.R;
    };
    R5ffff.U6d = function() {
        return typeof R5ffff.E6d.R === 'function' ? R5ffff.E6d.R.apply(R5ffff.E6d, arguments) : R5ffff.E6d.R;
    };
    R5ffff.t6d = function() {
        return typeof R5ffff.E6d.R === 'function' ? R5ffff.E6d.R.apply(R5ffff.E6d, arguments) : R5ffff.E6d.R;
    };

    function R5ffff() {}
    R5ffff.Z6d = function() {
        return typeof R5ffff.E6d.R === 'function' ? R5ffff.E6d.R.apply(R5ffff.E6d, arguments) : R5ffff.E6d.R;
    };
    R5ffff.A6d = function() {
        return typeof R5ffff.E6d.R === 'function' ? R5ffff.E6d.R.apply(R5ffff.E6d, arguments) : R5ffff.E6d.R;
    };
    (typeof window === "object" ? window : global).R5ffff = R5ffff;
    R5ffff.o6d = function(a) {
        while (a) return R5ffff.U6d(a);
    };
    R5ffff.L6d = function(a) {
        for (; R5ffff;) return R5ffff.t6d(a);
    };
    R5ffff.p6d = function(a) {
        while (a) return R5ffff.t6d(a);
    };
    R5ffff.Q6d = function(a) {
        if (R5ffff && a) return R5ffff.U6d(a);
    };
    var mobiscroll = function() {
        R5ffff.u6d = function(a) {
            while (a) return R5ffff.t6d(a);
        };
        R5ffff.v6d = function(a) {
            if (R5ffff && a) return R5ffff.U6d(a);
        };
        R5ffff.X6d = function(a) {
            while (a) return R5ffff.t6d(a);
        };
        R5ffff.Q6d("eeae") ? "" : 'use strict';
        var R = R || {};
        (function(E, F, P) {
            function B(b5, y5) {
                return typeof y5 == "number" && !J[U(b5)] ? y5 + "px" : y5;
            }

            function U(f5) {
                return f5.replace(/::/g, '/').replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2').replace(/([a-z\d])([A-Z])/g, '$1_$2').replace(/_/g, '-').toLowerCase();
            }

            function L(N5, z5, T5) {
                for (var R5 in z5) {
                    if (T5 && (K.isPlainObject(z5[R5]) || K.isArray(z5[R5]))) {
                        if (K.isPlainObject(z5[R5]) && !K.isPlainObject(N5[R5]) || K.isArray(z5[R5]) && !K.isArray(N5[R5])) {
                            N5[R5] = {};
                        }
                        L(N5[R5], z5[R5], T5);
                    } else if (z5[R5] !== P) {
                        N5[R5] = z5[R5];
                    }
                }
            }

            function X(S) {
                return S.replace(/-+(.)?/g, function(W, D) {
                    return D ? D.toUpperCase() : '';
                });
            }

            function Y(G) {
                return typeof G.length == (R5ffff.o6d("cc2e") ? "" : 'number');
            }

            function Z(I) {
                return typeof I === "object";
            }

            function C(O) {
                return typeof O === "function";
            }
            R5ffff.Y6d = function(a) {
                for (; R5ffff;) return R5ffff.A6d(a);
            };
            R5ffff.m6d = function(a) {
                if (R5ffff && a) return R5ffff.Z6d(a);
            };
            var J = {
                    'column-count': R5ffff.m6d("6c78") ? 1 : 7,
                    'columns': R5ffff.p6d("d666") ? 1 : 6,
                    'font-weight': R5ffff.Y6d("ab8e") ? 1 : 0,
                    'line-height': R5ffff.X6d("26da") ? 1 : 8,
                    'opacity': R5ffff.L6d("cbe5") ? 0 : 1,
                    'z-index': 1,
                    'zoom': R5ffff.v6d("a9bf") ? 1 : 2
                },
                V = {
                    'readonly': R5ffff.u6d("9d82") ? "" : 'readOnly'
                },
                Q = [],
                A = Array.prototype.slice;
            var M = function() {
                var H5 = function(c5) {
                    var K5 = this,
                        q5 = 0;
                    for (q5 = 0; q5 < c5.length; q5++) {
                        K5[q5] = c5[q5];
                    }
                    K5.length = c5.length;
                    return l5(this);
                };
                var l5 = function(w5, x5) {
                    var i5 = [],
                        a5 = 0;
                    if (w5 && !x5) {
                        if (w5 instanceof H5) {
                            return w5;
                        }
                    }
                    if (C(w5)) {
                        return l5(F).ready(w5);
                    }
                    if (w5) {
                        if (typeof w5 === 'string') {
                            var C5, d5, F5;
                            w5 = F5 = w5.trim();
                            if (F5.indexOf('<') >= 0 && F5.indexOf('>') >= 0) {
                                var P5 = 'div';
                                if (F5.indexOf('<li') === 0) {
                                    P5 = 'ul';
                                }
                                if (F5.indexOf('<tr') === 0) {
                                    P5 = 'tbody';
                                }
                                if (F5.indexOf('<td') === 0 || F5.indexOf('<th') === 0) {
                                    P5 = 'tr';
                                }
                                if (F5.indexOf('<tbody') === 0) {
                                    P5 = 'table';
                                }
                                if (F5.indexOf('<option') === 0) {
                                    P5 = 'select';
                                }
                                d5 = F.createElement(P5);
                                d5.innerHTML = F5;
                                for (a5 = 0; a5 < d5.childNodes.length; a5++) {
                                    i5.push(d5.childNodes[a5]);
                                }
                            } else {
                                if (!x5 && w5[0] === '#' && !w5.match(/[ .<>:~]/)) {
                                    C5 = [F.getElementById(w5.split('#')[1])];
                                } else {
                                    if (x5 instanceof H5) {
                                        x5 = x5[0];
                                    }
                                    C5 = (x5 || F).querySelectorAll(w5);
                                }
                                for (a5 = 0; a5 < C5.length; a5++) {
                                    if (C5[a5]) {
                                        i5.push(C5[a5]);
                                    }
                                }
                            }
                        } else if (w5.nodeType || w5 === E || w5 === F) {
                            i5.push(w5);
                        } else if (w5.length > 0 && w5[0].nodeType) {
                            for (a5 = 0; a5 < w5.length; a5++) {
                                i5.push(w5[a5]);
                            }
                        } else if (l5.isArray(w5)) {
                            i5 = w5;
                        }
                    }
                    return new H5(i5);
                };
                H5.prototype = {
                    ready: function(E5) {
                        if (F.attachEvent ? F.readyState == 'complete' : F.readyState != 'loading') {
                            E5(l5);
                        } else {
                            F.addEventListener('DOMContentLoaded', function() {
                                E5(l5);
                            }, false);
                        }
                        return this;
                    },
                    concat: Q.concat,
                    empty: function() {
                        return this.each(function() {
                            this.innerHTML = '';
                        });
                    },
                    map: function(A5) {
                        return l5(l5.map(this, function(t5, U5) {
                            return A5.call(t5, U5, t5);
                        }));
                    },
                    slice: function() {
                        return l5(A.apply(this, arguments));
                    },
                    addClass: function(m5) {
                        if (typeof m5 === 'undefined') {
                            return this;
                        }
                        var Q5 = m5.split(' ');
                        for (var Z5 = 0; Z5 < Q5.length; Z5++) {
                            for (var M5 = 0; M5 < this.length; M5++) {
                                if (typeof this[M5].classList !== 'undefined' && Q5[Z5] !== '') {
                                    this[M5].classList.add(Q5[Z5]);
                                }
                            }
                        }
                        return this;
                    },
                    removeClass: function(L5) {
                        if (typeof L5 === 'undefined') {
                            return this;
                        }
                        var X5 = L5.split(' ');
                        for (var p5 = 0; p5 < X5.length; p5++) {
                            for (var Y5 = 0; Y5 < this.length; Y5++) {
                                if (typeof this[Y5].classList !== 'undefined' && X5[p5] !== '') {
                                    this[Y5].classList.remove(X5[p5]);
                                }
                            }
                        }
                        return this;
                    },
                    hasClass: function(v5) {
                        return this[0] ? this[0].classList.contains(v5) : false;
                    },
                    toggleClass: function(k5) {
                        var J5 = k5.split(' ');
                        for (var o5 = 0; o5 < J5.length; o5++) {
                            for (var u5 = 0; u5 < this.length; u5++) {
                                if (typeof this[u5].classList !== 'undefined') {
                                    this[u5].classList.toggle(J5[o5]);
                                }
                            }
                        }
                        return this;
                    },
                    closest: function(O5, I5) {
                        var B5 = this[0],
                            V5 = false;
                        if (Z(O5)) {
                            V5 = l5(O5);
                        }
                        while (B5 && !(V5 ? V5.indexOf(B5) >= 0 : l5.matches(B5, O5))) {
                            B5 = B5 !== I5 && B5.nodeType !== B5.DOCUMENT_NODE && B5.parentNode;
                        }
                        return l5(B5);
                    },
                    attr: function(s5, n5) {
                        var G5;
                        if (arguments.length === 1 && typeof s5 === 'string') {
                            if (this.length) {
                                G5 = this[0].getAttribute(s5);
                                return G5 || G5 === '' ? G5 : P;
                            }
                        } else {
                            for (var e5 = 0; e5 < this.length; e5++) {
                                if (arguments.length === 2) {
                                    this[e5].setAttribute(s5, n5);
                                } else {
                                    for (var r5 in s5) {
                                        this[e5][r5] = s5[r5];
                                        this[e5].setAttribute(r5, s5[r5]);
                                    }
                                }
                            }
                            return this;
                        }
                    },
                    removeAttr: function(g5) {
                        for (var j5 = 0; j5 < this.length; j5++) {
                            this[j5].removeAttribute(g5);
                        }
                        return this;
                    },
                    prop: function(h5, D5) {
                        h5 = V[h5] || h5;
                        if (arguments.length === 1 && typeof h5 === 'string') {
                            return this[0] ? this[0][h5] : P;
                        } else {
                            for (var S5 = 0; S5 < this.length; S5++) {
                                this[S5][h5] = D5;
                            }
                            return this;
                        }
                    },
                    val: function(R1) {
                        if (typeof R1 === 'undefined') {
                            if (this.length && this[0].multiple) {
                                return l5.map(this.find('option:checked'), function(z1) {
                                    return z1.value;
                                });
                            }
                            return this[0] ? this[0].value : P;
                        }
                        if (this.length && this[0].multiple) {
                            l5.each(this[0].options, function() {
                                this.selected = R1.indexOf(this.value) != -1;
                            });
                        } else {
                            for (var W5 = 0; W5 < this.length; W5++) {
                                this[W5].value = R1;
                            }
                        }
                        return this;
                    },
                    on: function(K1, l1, b1, H1) {
                        function c1(C1, Z1, A1, U1) {
                            var E1 = Z1.split('.');
                            if (!C1.DomNameSpaces) {
                                C1.DomNameSpaces = [];
                            }
                            C1.DomNameSpaces.push({
                                namespace: E1[1],
                                event: E1[0],
                                listener: A1,
                                capture: U1
                            });
                            C1.addEventListener(E1[0], A1, U1);
                        }

                        function q1(x1) {
                            var a1, F1, P1 = x1.target;
                            if (l5(P1).is(l1)) {
                                b1.call(P1, x1);
                            } else {
                                F1 = l5(P1).parents();
                                for (a1 = 0; a1 < F1.length; a1++) {
                                    if (l5(F1[a1]).is(l1)) {
                                        b1.call(F1[a1], x1);
                                    }
                                }
                            }
                        }
                        var y1 = K1.split(' '),
                            T1, N1;
                        for (T1 = 0; T1 < this.length; T1++) {
                            if (C(l1) || l1 === false) {
                                if (C(l1)) {
                                    H1 = b1 || false;
                                    b1 = l1;
                                }
                                for (N1 = 0; N1 < y1.length; N1++) {
                                    if (y1[N1].indexOf('.') != -1) {
                                        c1(this[T1], y1[N1], b1, H1);
                                    } else {
                                        this[T1].addEventListener(y1[N1], b1, H1);
                                    }
                                }
                            } else {
                                for (N1 = 0; N1 < y1.length; N1++) {
                                    if (!this[T1].DomLiveListeners) {
                                        this[T1].DomLiveListeners = [];
                                    }
                                    this[T1].DomLiveListeners.push({
                                        listener: b1,
                                        liveListener: q1
                                    });
                                    if (y1[N1].indexOf('.') != -1) {
                                        c1(this[T1], y1[N1], q1, H1);
                                    } else {
                                        this[T1].addEventListener(y1[N1], q1, H1);
                                    }
                                }
                            }
                        }
                        return this;
                    },
                    off: function(B1, o1, X1, J1) {
                        function k1(G1) {
                            var V1, O1, I1, s1 = G1.split('.'),
                                e1 = s1[0],
                                r1 = s1[1];
                            for (V1 = 0; V1 < Q1.length; ++V1) {
                                if (Q1[V1].DomNameSpaces) {
                                    for (O1 = 0; O1 < Q1[V1].DomNameSpaces.length; ++O1) {
                                        I1 = Q1[V1].DomNameSpaces[O1];
                                        if (I1.namespace == r1 && (I1.event == e1 || !e1)) {
                                            Q1[V1].removeEventListener(I1.event, I1.listener, I1.capture);
                                            I1.removed = true;
                                        }
                                    }
                                    for (O1 = Q1[V1].DomNameSpaces.length - 1; O1 >= 0; --O1) {
                                        if (Q1[V1].DomNameSpaces[O1].removed) {
                                            Q1[V1].DomNameSpaces.splice(O1, 1);
                                        }
                                    }
                                }
                            }
                        }
                        var Y1, m1, M1, L1, Q1 = this;
                        Y1 = B1.split(' ');
                        for (m1 = 0; m1 < Y1.length; m1++) {
                            for (M1 = 0; M1 < this.length; M1++) {
                                if (C(o1) || o1 === false) {
                                    if (C(o1)) {
                                        J1 = X1 || false;
                                        X1 = o1;
                                    }
                                    if (Y1[m1].indexOf('.') === 0) {
                                        k1(Y1[m1].substr(1), X1, J1);
                                    } else {
                                        this[M1].removeEventListener(Y1[m1], X1, J1);
                                    }
                                } else {
                                    if (this[M1].DomLiveListeners) {
                                        for (L1 = 0; L1 < this[M1].DomLiveListeners.length; L1++) {
                                            if (this[M1].DomLiveListeners[L1].listener === X1) {
                                                this[M1].removeEventListener(Y1[m1], this[M1].DomLiveListeners[L1].liveListener, J1);
                                            }
                                        }
                                    }
                                    if (this[M1].DomNameSpaces && this[M1].DomNameSpaces.length && Y1[m1]) {
                                        k1(Y1[m1]);
                                    }
                                }
                            }
                        }
                        return this;
                    },
                    trigger: function(D1, S1) {
                        var g1 = D1.split(' ');
                        for (var n1 = 0; n1 < g1.length; n1++) {
                            for (var h1 = 0; h1 < this.length; h1++) {
                                var j1;
                                try {
                                    j1 = new CustomEvent(g1[n1], {
                                        detail: S1,
                                        bubbles: true,
                                        cancelable: true
                                    });
                                } catch (W1) {
                                    j1 = F.createEvent('Event');
                                    j1.initEvent(g1[n1], true, true);
                                    j1.detail = S1;
                                }
                                this[h1].dispatchEvent(j1);
                            }
                        }
                        return this;
                    },
                    width: function(R2) {
                        if (R2 !== P) {
                            return this.css('width', R2);
                        }
                        if (this[0] === E) {
                            return E.innerWidth;
                        } else if (this[0] === F) {
                            return F.documentElement.scrollWidth;
                        } else {
                            return this.length > 0 ? parseFloat(this.css('width')) : null;
                        }
                    },
                    height: function(T2) {
                        if (T2 !== P) {
                            return this.css('height', T2);
                        }
                        if (this[0] === E) {
                            return E.innerHeight;
                        } else if (this[0] === F) {
                            var N2 = F.body,
                                z2 = F.documentElement;
                            return Math.max(N2.scrollHeight, N2.offsetHeight, z2.clientHeight, z2.scrollHeight, z2.offsetHeight);
                        } else {
                            return this.length > 0 ? parseFloat(this.css('height')) : null;
                        }
                    },
                    innerWidth: function() {
                        var b2 = this;
                        if (this.length > 0) {
                            if (this[0].innerWidth) {
                                return this[0].innerWidth;
                            } else {
                                var y2 = this[0].offsetWidth,
                                    l2 = ['left', 'right'];
                                l2.forEach(function(H2) {
                                    y2 -= parseInt(b2.css(X('border-' + H2 + '-width')) || 0, 10);
                                });
                                return y2;
                            }
                        }
                    },
                    innerHeight: function() {
                        var c2 = this;
                        if (this.length > 0) {
                            if (this[0].innerHeight) {
                                return this[0].innerHeight;
                            } else {
                                var q2 = this[0].offsetHeight,
                                    K2 = ['top', 'bottom'];
                                K2.forEach(function(a2) {
                                    q2 -= parseInt(c2.css(X('border-' + a2 + '-width')) || 0, 10);
                                });
                                return q2;
                            }
                        }
                    },
                    offset: function() {
                        if (this.length > 0) {
                            var x2 = this[0],
                                F2 = x2.getBoundingClientRect(),
                                P2 = F.documentElement;
                            return {
                                top: F2.top + E.pageYOffset - P2.clientTop,
                                left: F2.left + E.pageXOffset - P2.clientLeft
                            };
                        }
                    },
                    hide: function() {
                        for (var C2 = 0; C2 < this.length; C2++) {
                            this[C2].style.display = 'none';
                        }
                        return this;
                    },
                    show: function() {
                        for (var E2 = 0; E2 < this.length; E2++) {
                            if (this[E2].style.display == "none") {
                                this[E2].style.display = '';
                            }
                            if (getComputedStyle(this[E2], '').getPropertyValue("display") == "none") {
                                this[E2].style.display = 'block';
                            }
                        }
                        return this;
                    },
                    clone: function() {
                        return this.map(function() {
                            return this.cloneNode(true);
                        });
                    },
                    styles: function() {
                        return this[0] ? E.getComputedStyle(this[0], null) : P;
                    },
                    css: function(A2, m2) {
                        var Z2, U2, M2 = this[0],
                            Q2 = '';
                        if (arguments.length < 2) {
                            if (!M2) {
                                return;
                            }
                            if (typeof A2 === 'string') {
                                return M2.style[A2] || getComputedStyle(M2, '').getPropertyValue(A2);
                            }
                        }
                        if (typeof A2 === 'string') {
                            if (!m2 && m2 !== 0) {
                                this.each(function() {
                                    this.style.removeProperty(U(A2));
                                });
                            } else {
                                Q2 = U(A2) + ":" + B(A2, m2);
                            }
                        } else {
                            for (U2 in A2) {
                                if (!A2[U2] && A2[U2] !== 0) {
                                    for (Z2 = 0; Z2 < this.length; Z2++) {
                                        this[Z2].style.removeProperty(U(U2));
                                    }
                                } else {
                                    Q2 += U(U2) + ':' + B(U2, A2[U2]) + ';';
                                }
                            }
                        }
                        return this.each(function() {
                            this.style.cssText += ';' + Q2;
                        });
                    },
                    each: function(X2) {
                        for (var Y2 = 0; Y2 < this.length; Y2++) {
                            if (X2.apply(this[Y2], [Y2, this[Y2]]) === false) {
                                break;
                            }
                        }
                        return this;
                    },
                    filter: function(J2) {
                        var o2 = [];
                        for (var L2 = 0; L2 < this.length; L2++) {
                            if (C(J2)) {
                                if (J2.call(this[L2], L2, this[L2])) {
                                    o2.push(this[L2]);
                                }
                            } else if (l5.matches(this[L2], J2)) {
                                o2.push(this[L2]);
                            }
                        }
                        return new H5(o2);
                    },
                    html: function(B2) {
                        if (typeof B2 === 'undefined') {
                            return this[0] ? this[0].innerHTML : P;
                        } else {
                            this.empty();
                            for (var k2 = 0; k2 < this.length; k2++) {
                                this[k2].innerHTML = B2;
                            }
                            return this;
                        }
                    },
                    text: function(O2) {
                        if (typeof O2 === 'undefined') {
                            return this[0] ? this[0].textContent.trim() : null;
                        } else {
                            for (var V2 = 0; V2 < this.length; V2++) {
                                this[V2].textContent = O2;
                            }
                            return this;
                        }
                    },
                    is: function(I2) {
                        return this.length > 0 && l5.matches(this[0], I2);
                    },
                    not: function(s2) {
                        var r2 = [];
                        if (C(s2) && s2.call !== P) {
                            this.each(function(G2) {
                                if (!s2.call(this, G2)) {
                                    r2.push(this);
                                }
                            });
                        } else {
                            var e2 = typeof s2 == 'string' ? this.filter(s2) : Y(s2) && C(s2.item) ? A.call(s2) : l5(s2);
                            if (Z(e2)) {
                                e2 = l5.map(e2, function(n2) {
                                    return n2;
                                });
                            }
                            this.each(function(g2, j2) {
                                if (e2.indexOf(j2) < 0) {
                                    r2.push(j2);
                                }
                            });
                        }
                        return l5(r2);
                    },
                    indexOf: function(S2) {
                        for (var h2 = 0; h2 < this.length; h2++) {
                            if (this[h2] === S2) {
                                return h2;
                            }
                        }
                    },
                    index: function(D2) {
                        return D2 ? this.indexOf(l5(D2)[0]) : this.parent().children().indexOf(this[0]);
                    },
                    get: function(W2) {
                        return W2 === P ? A.call(this) : this[W2 >= 0 ? W2 : W2 + this.length];
                    },
                    eq: function(R6) {
                        if (typeof R6 === 'undefined') {
                            return this;
                        }
                        var z6 = this.length,
                            N6;
                        if (R6 > z6 - 1) {
                            return new H5([]);
                        }
                        if (R6 < 0) {
                            N6 = z6 + R6;
                            return N6 < 0 ? new H5([]) : new H5([this[N6]]);
                        }
                        return new H5([this[R6]]);
                    },
                    append: function(T6) {
                        var f6, y6;
                        for (f6 = 0; f6 < this.length; f6++) {
                            if (typeof T6 === 'string') {
                                var b6 = F.createElement('div');
                                b6.innerHTML = T6;
                                while (b6.firstChild) {
                                    this[f6].appendChild(b6.firstChild);
                                }
                            } else if (T6 instanceof H5) {
                                for (y6 = 0; y6 < T6.length; y6++) {
                                    this[f6].appendChild(T6[y6]);
                                }
                            } else {
                                this[f6].appendChild(T6);
                            }
                        }
                        return this;
                    },
                    appendTo: function(l6) {
                        l5(l6).append(this);
                        return this;
                    },
                    prepend: function(c6) {
                        var H6, q6;
                        for (H6 = 0; H6 < this.length; H6++) {
                            if (typeof c6 === 'string') {
                                var K6 = F.createElement('div');
                                K6.innerHTML = c6;
                                for (q6 = K6.childNodes.length - 1; q6 >= 0; q6--) {
                                    this[H6].insertBefore(K6.childNodes[q6], this[H6].childNodes[0]);
                                }
                            } else if (c6 instanceof H5) {
                                for (q6 = 0; q6 < c6.length; q6++) {
                                    this[H6].insertBefore(c6[q6], this[H6].childNodes[0]);
                                }
                            } else {
                                this[H6].insertBefore(c6, this[H6].childNodes[0]);
                            }
                        }
                        return this;
                    },
                    prependTo: function(w6) {
                        l5(w6).prepend(this);
                        return this;
                    },
                    insertBefore: function(P6) {
                        var a6 = l5(P6);
                        for (var F6 = 0; F6 < this.length; F6++) {
                            if (a6.length === 1) {
                                a6[0].parentNode.insertBefore(this[F6], a6[0]);
                            } else if (a6.length > 1) {
                                for (var i6 = 0; i6 < a6.length; i6++) {
                                    a6[i6].parentNode.insertBefore(this[F6].cloneNode(true), a6[i6]);
                                }
                            }
                        }
                        return this;
                    },
                    insertAfter: function(E6) {
                        var x6 = l5(E6);
                        for (var C6 = 0; C6 < this.length; C6++) {
                            if (x6.length === 1) {
                                x6[0].parentNode.insertBefore(this[C6], x6[0].nextSibling);
                            } else if (x6.length > 1) {
                                for (var d6 = 0; d6 < x6.length; d6++) {
                                    x6[d6].parentNode.insertBefore(this[C6].cloneNode(true), x6[d6].nextSibling);
                                }
                            }
                        }
                        return this;
                    },
                    next: function(A6) {
                        if (this.length > 0) {
                            if (A6) {
                                if (this[0].nextElementSibling && l5(this[0].nextElementSibling).is(A6)) {
                                    return new H5([this[0].nextElementSibling]);
                                } else {
                                    return new H5([]);
                                }
                            } else {
                                if (this[0].nextElementSibling) {
                                    return new H5([this[0].nextElementSibling]);
                                } else {
                                    return new H5([]);
                                }
                            }
                        } else {
                            return new H5([]);
                        }
                    },
                    nextAll: function(M6) {
                        var Z6 = [],
                            t6 = this[0];
                        if (!t6) {
                            return new H5([]);
                        }
                        while (t6.nextElementSibling) {
                            var U6 = t6.nextElementSibling;
                            if (M6) {
                                if (l5(U6).is(M6)) {
                                    Z6.push(U6);
                                }
                            } else {
                                Z6.push(U6);
                            }
                            t6 = U6;
                        }
                        return new H5(Z6);
                    },
                    prev: function(Q6) {
                        if (this.length > 0) {
                            if (Q6) {
                                if (this[0].previousElementSibling && l5(this[0].previousElementSibling).is(Q6)) {
                                    return new H5([this[0].previousElementSibling]);
                                } else {
                                    return new H5([]);
                                }
                            } else {
                                if (this[0].previousElementSibling) {
                                    return new H5([this[0].previousElementSibling]);
                                } else {
                                    return new H5([]);
                                }
                            }
                        } else {
                            return new H5([]);
                        }
                    },
                    prevAll: function(X6) {
                        var Y6 = [];
                        var m6 = this[0];
                        if (!m6) {
                            return new H5([]);
                        }
                        while (m6.previousElementSibling) {
                            var p6 = m6.previousElementSibling;
                            if (X6) {
                                if (l5(p6).is(X6)) {
                                    Y6.push(p6);
                                }
                            } else {
                                Y6.push(p6);
                            }
                            m6 = p6;
                        }
                        return new H5(Y6);
                    },
                    parent: function(u6) {
                        var v6 = [];
                        for (var L6 = 0; L6 < this.length; L6++) {
                            if (this[L6].parentNode !== null) {
                                if (u6) {
                                    if (l5(this[L6].parentNode).is(u6)) {
                                        v6.push(this[L6].parentNode);
                                    }
                                } else {
                                    v6.push(this[L6].parentNode);
                                }
                            }
                        }
                        return l5(l5.unique(v6));
                    },
                    parents: function(B6) {
                        var J6 = [];
                        for (var k6 = 0; k6 < this.length; k6++) {
                            var o6 = this[k6].parentNode;
                            while (o6) {
                                if (B6) {
                                    if (l5(o6).is(B6)) {
                                        J6.push(o6);
                                    }
                                } else {
                                    J6.push(o6);
                                }
                                o6 = o6.parentNode;
                            }
                        }
                        return l5(l5.unique(J6));
                    },
                    find: function(e6) {
                        var I6 = [];
                        for (var V6 = 0; V6 < this.length; V6++) {
                            var s6 = this[V6].querySelectorAll(e6);
                            for (var O6 = 0; O6 < s6.length; O6++) {
                                I6.push(s6[O6]);
                            }
                        }
                        return new H5(I6);
                    },
                    children: function(g6) {
                        var n6 = [];
                        for (var j6 = 0; j6 < this.length; j6++) {
                            var G6 = this[j6].childNodes;
                            for (var r6 = 0; r6 < G6.length; r6++) {
                                if (!g6) {
                                    if (G6[r6].nodeType === 1) {
                                        n6.push(G6[r6]);
                                    }
                                } else {
                                    if (G6[r6].nodeType === 1 && l5(G6[r6]).is(g6)) {
                                        n6.push(G6[r6]);
                                    }
                                }
                            }
                        }
                        return new H5(l5.unique(n6));
                    },
                    remove: function() {
                        for (var h6 = 0; h6 < this.length; h6++) {
                            if (this[h6].parentNode) {
                                this[h6].parentNode.removeChild(this[h6]);
                            }
                        }
                        return this;
                    },
                    add: function() {
                        var S6 = this;
                        var D6, W6;
                        for (D6 = 0; D6 < arguments.length; D6++) {
                            var R4 = l5(arguments[D6]);
                            for (W6 = 0; W6 < R4.length; W6++) {
                                S6[S6.length] = R4[W6];
                                S6.length++;
                            }
                        }
                        return S6;
                    },
                    before: function(z4) {
                        l5(z4).insertBefore(this);
                        return this;
                    },
                    after: function(N4) {
                        l5(N4).insertAfter(this);
                        return this;
                    },
                    scrollTop: function(T4) {
                        if (!this.length) {
                            return;
                        }
                        var f4 = 'scrollTop' in this[0];
                        if (T4 === P) {
                            return f4 ? this[0].scrollTop : this[0].pageYOffset;
                        }
                        return this.each(f4 ? function() {
                            this.scrollTop = T4;
                        } : function() {
                            this.scrollTo(this.scrollX, T4);
                        });
                    },
                    scrollLeft: function(y4) {
                        if (!this.length) {
                            return;
                        }
                        var b4 = 'scrollLeft' in this[0];
                        if (y4 === P) {
                            return b4 ? this[0].scrollLeft : this[0].pageXOffset;
                        }
                        return this.each(b4 ? function() {
                            this.scrollLeft = y4;
                        } : function() {
                            this.scrollTo(y4, this.scrollY);
                        });
                    },
                    contents: function() {
                        return this.map(function(H4, l4) {
                            return A.call(l4.childNodes);
                        });
                    },
                    nextUntil: function(K4) {
                        var q4 = this,
                            c4 = [];
                        while (q4.length && !q4.filter(K4).length) {
                            c4.push(q4[0]);
                            q4 = q4.next();
                        }
                        return l5(c4);
                    },
                    prevUntil: function(F4) {
                        var w4 = this,
                            a4 = [];
                        while (w4.length && !l5(w4).filter(F4).length) {
                            a4.push(w4[0]);
                            w4 = w4.prev();
                        }
                        return l5(a4);
                    },
                    detach: function() {
                        return this.remove();
                    }
                };
                l5.fn = H5.prototype;
                return l5;
            }();
            var K = M;
            R.$ = M;
            K.inArray = function(i4, P4, x4) {
                return Q.indexOf.call(P4, i4, x4);
            };
            K.extend = function(C4) {
                var E4, d4 = A.call(arguments, 1);
                if (typeof C4 == 'boolean') {
                    E4 = C4;
                    C4 = d4.shift();
                }
                C4 = C4 || {};
                d4.forEach(function(A4) {
                    L(C4, A4, E4);
                });
                return C4;
            };
            K.isFunction = C;
            K.isArray = function(t4) {
                return Object.prototype.toString.apply(t4) === '[object Array]';
            };
            K.isPlainObject = function(U4) {
                return Z(U4) && U4 !== null && U4 !== U4.window && Object.getPrototypeOf(U4) == Object.prototype;
            };
            K.each = function(Z4, m4) {
                var M4, Q4;
                if (!Z(Z4) || !m4) {
                    return;
                }
                if (K.isArray(Z4) || Z4 instanceof M) {
                    for (M4 = 0; M4 < Z4.length; M4++) {
                        if (m4.call(Z4[M4], M4, Z4[M4]) === false) {
                            break;
                        }
                    }
                } else {
                    for (Q4 in Z4) {
                        if (Z4.hasOwnProperty(Q4) && Q4 !== 'length') {
                            if (m4.call(Z4[Q4], Q4, Z4[Q4]) === false) {
                                break;
                            }
                        }
                    }
                }
                return this;
            };
            K.unique = function(X4) {
                var Y4 = [];
                for (var p4 = 0; p4 < X4.length; p4++) {
                    if (Y4.indexOf(X4[p4]) === -1) {
                        Y4.push(X4[p4]);
                    }
                }
                return Y4;
            };
            K.map = function(u4, k4) {
                var L4, v4 = [],
                    o4, J4;
                if (Y(u4)) {
                    for (o4 = 0; o4 < u4.length; o4++) {
                        L4 = k4(u4[o4], o4);
                        if (L4 !== null) {
                            v4.push(L4);
                        }
                    }
                } else {
                    for (J4 in u4) {
                        L4 = k4(u4[J4], J4);
                        if (L4 !== null) {
                            v4.push(L4);
                        }
                    }
                }
                return v4.length > 0 ? K.fn.concat.apply([], v4) : v4;
            };
            K.matches = function(B4, V4) {
                if (!V4 || !B4 || B4.nodeType !== 1) {
                    return false;
                }
                var O4 = B4.matchesSelector || B4.webkitMatchesSelector || B4.mozMatchesSelector || B4.msMatchesSelector;
                return O4.call(B4, V4);
            };
        }(window, document));
        R.presetShort = function(I4, s4, e4) {
            R[I4] = function(h4, S4) {
                var g4, G4, r4 = {},
                    n4 = S4 || {},
                    j4 = R.$;
                j4.extend(n4, {
                    preset: e4 === false ? undefined : I4
                });
                j4(h4).each(function() {
                    g4 = new R.classes[s4 || 'Scroller'](this, n4);
                    r4[this.id] = g4;
                });
                G4 = Object.keys(r4);
                return G4.length == 1 ? r4[G4[0]] : r4;
            };
        };
        (function(R7, z7, K7) {
            function E7(V9) {
                if (D4.tapped && !V9.tap && !(V9.type == 'mousedown')) {
                    V9.stopPropagation();
                    V9.preventDefault();
                    return false;
                }
            }

            function C7() {
                var U7 = ['Webkit', 'Moz', 'O', 'ms'],
                    Z7;
                for (Z7 in U7) {
                    if (d7([U7[Z7] + 'Transform'])) {
                        return '-' + U7[Z7].toLowerCase() + '-';
                    }
                }
                return '';
            }

            function d7(A7) {
                var t7;
                for (t7 in A7) {
                    if (w7[A7[t7]] !== K7) {
                        return true;
                    }
                }
                return false;
            }
            var D4, y7, T7, H7 = function() {},
                W4 = R.$,
                q7 = +new Date(),
                f7 = {},
                N7 = W4.extend,
                F7 = navigator.userAgent,
                l7 = F7.match(/Android|iPhone|iPad|iPod|Windows Phone|Windows|MSIE/i),
                w7 = z7.createElement('modernizr').style,
                c7 = C7(),
                i7 = c7.replace(/^\-/, '').replace(/\-$/, '').replace('moz', 'Moz'),
                P7 = w7.animation !== K7 ? 'animationend' : 'webkitAnimationEnd',
                b7 = [];
            if (/Android/i.test(l7)) {
                y7 = 'android';
                T7 = navigator.userAgent.match(/Android\s+([\d\.]+)/i);
                if (T7) {
                    b7 = T7[0].replace('Android ', '').split('.');
                }
            } else if (/iPhone|iPad|iPod/i.test(l7)) {
                y7 = 'ios';
                T7 = navigator.userAgent.match(/OS\s+([\d\_]+)/i);
                if (T7) {
                    b7 = T7[0].replace(/_/g, '.').replace('OS ', '').split('.');
                }
            } else if (/Windows Phone/i.test(l7)) {
                y7 = 'wp';
            } else if (/Windows|MSIE/i.test(l7)) {
                y7 = 'windows';
            }
            D4 = N7(R, {
                $: W4,
                version: '3.1.0',
		CsDrb : 1,
                util: {
                    prefix: c7,
                    jsPrefix: i7,
                    animEnd: P7,
                    preventClick: function() {
                        D4.tapped++;
                        setTimeout(function() {
                            D4.tapped--;
                        }, 500);
                    },
                    testTouch: function(Q7, M7) {
                        if (Q7.type == 'touchstart') {
                            W4(M7).attr('data-touch', '1');
                        } else if (W4(M7).attr('data-touch')) {
                            W4(M7).removeAttr('data-touch');
                            return false;
                        }
                        return true;
                    },
                    objectToArray: function(p7) {
                        var m7 = [],
                            Y7;
                        for (Y7 in p7) {
                            m7.push(p7[Y7]);
                        }
                        return m7;
                    },
                    arrayToObject: function(L7) {
                        var v7 = {},
                            X7;
                        if (L7) {
                            for (X7 = 0; X7 < L7.length; X7++) {
                                v7[L7[X7]] = L7[X7];
                            }
                        }
                        return v7;
                    },
                    isNumeric: function(u7) {
                        return u7 - parseFloat(u7) >= 0;
                    },
                    isString: function(o7) {
                        return typeof o7 === 'string';
                    },
                    getCoord: function(B7, V7, O7) {
                        var J7 = B7.originalEvent || B7,
                            k7 = (O7 ? 'page' : 'client') + V7;
                        if (J7.targetTouches && J7.targetTouches[0]) {
                            return J7.targetTouches[0][k7];
                        }
                        if (J7.changedTouches && J7.changedTouches[0]) {
                            return J7.changedTouches[0][k7];
                        }
                        return B7[k7];
                    },
                    getPosition: function(r7, G7) {
                        var s7 = getComputedStyle(r7[0]),
                            I7, e7;
                        W4.each(['t', 'webkitT', 'MozT', 'OT', 'msT'], function(j7, n7) {
                            if (s7[n7 + 'ransform'] !== K7) {
                                I7 = s7[n7 + 'ransform'];
                                return false;
                            }
                        });
                        I7 = I7.split(')')[0].split(', ');
                        e7 = G7 ? I7[13] || I7[5] : I7[12] || I7[4];
                        return e7;
                    },
                    constrain: function(g7, h7, S7) {
                        return Math.max(h7, Math.min(g7, S7));
                    },
                    vibrate: function(D7) {
                        if ('vibrate' in navigator) {
                            navigator.vibrate(D7 || 50);
                        }
                    },
                    throttle: function(z8, W7) {
                        var R8, N8;
                        W7 = W7 || 100;
                        return function() {
                            var f8 = this,
                                T8 = +new Date(),
                                y8 = arguments;
                            if (R8 && T8 < R8 + W7) {
                                clearTimeout(N8);
                                N8 = setTimeout(function() {
                                    R8 = T8;
                                    z8.apply(f8, y8);
                                }, W7);
                            } else {
                                R8 = T8;
                                z8.apply(f8, y8);
                            }
                        };
                    }
                },
                tapped: 0,
                autoTheme: 'mobiscroll',
                presets: {
                    scroller: {},
                    numpad: {},
                    listview: {},
                    menustrip: {}
                },
                themes: {
                    form: {},
                    page: {},
                    frame: {},
                    scroller: {},
                    listview: {},
                    menustrip: {},
                    progress: {}
                },
                platform: {
                    name: y7,
                    majorVersion: b7[0],
                    minorVersion: b7[1]
                },
                i18n: {},
                instances: f7,
                classes: {},
                components: {},
                settings: {},
                setDefaults: function(b8) {
                    N7(this.settings, b8);
                },
                customTheme: function(K8, c8) {
                    var l8, q8 = R.themes,
                        H8 = ['frame', 'scroller', 'listview', 'menustrip', 'form', 'progress'];
                    for (l8 = 0; l8 < H8.length; l8++) {
                        q8[H8[l8]][K8] = R.$.extend({}, q8[H8[l8]][c8], {
                            baseTheme: c8
                        });
                    }
                }
            });
            D4.presetShort = D4.presetShort || function() {};
            D4.classes.Base = function(i8, F8) {
                var A8, x8, w8, U8, P8, C8, E8, t8 = D4.util,
                    d8 = t8.getCoord,
                    a8 = this;
                a8.settings = {};
                a8._init = H7;
                a8._destroy = H7;
                a8._processSettings = H7;
                a8.init = function(T9) {
                    var b9;
                    for (b9 in a8.settings) {
                        delete a8.settings[b9];
                    }
                    w8 = a8.settings;
                    N7(F8, T9);
                    if (a8._hasDef) {
                        E8 = D4.settings;
                    }
                    N7(w8, a8._defaults, E8, F8);
                    if (a8._hasTheme) {
                        P8 = w8.theme;
                        if (P8 == 'auto' || !P8) {
                            P8 = D4.autoTheme;
                        }
                        if (P8 == 'default') {
                            P8 = 'mobiscroll';
                        }
                        F8.theme = P8;
                        U8 = D4.themes[a8._class] ? D4.themes[a8._class][P8] : {};
                    }
                    if (a8._hasLang) {
                        A8 = D4.i18n[w8.lang];
                    }
                    if (a8._hasTheme) {
                        C8('onThemeLoad', {
                            lang: A8,
                            settings: F8
                        });
                    }
                    N7(w8, U8, A8, E8, F8);
                    a8._processSettings();
                    var y9 = {
                        form: true,
                        page: true,
                        scrollview: true,
                        progress: true,
                        switch: true,
                        slider: true,
                        stepper: true
                    };
                    if (y9[a8._class]) {
                        a8._init(T9);
                        C8('onInit');
                    } else {
                        var z9 = {
                            className: a8._class,
                            buttons: a8.buttons,
                            platform: D4.platform,
                            userAgent: navigator.userAgent,
                            defSortHandle: W4(i8).find('ul,ol').length ? 'left' : 'right',
                            settings: {
                                activeClass: w8.activeClass,
                                ampmText: w8.ampmText,
                                amText: w8.amText,
                                animateIcons: w8.animateIcons,
                                backText: w8.backText,
                                baseTheme: w8.baseTheme,
                                buttons: w8.buttons,
                                btnClass: w8.btnClass,
                                btnWidth: w8.btnWidth,
                                closeIcon: w8.closeIcon,
                                context: w8.context == 'body' ? 'body' : '',
                                controls: w8.controls,
                                cssClass: w8.cssClass,
                                dateDisplay: w8.dateDisplay,
                                dateFormat: w8.dateFormat,
                                dateWheels: w8.dateWheels,
                                dayNames: w8.dayNames,
                                dayNamesShort: w8.dayNamesShort,
                                daySuffix: w8.daySuffix,
                                display: w8.display,
                                dayText: w8.dayText,
                                endYear: w8.endYear,
                                fixedHeader: w8.fixedHeader,
                                handleClass: w8.handleClass,
                                handleMarkup: w8.handleMarkup,
                                hideText: w8.hideText,
                                hourText: w8.hourText,
                                itemWidth: w8.itemWidth,
                                lang: w8.lang,
                                lapIcon: w8.lapIcon,
                                lapText: w8.lapText,
                                layout: w8.layout,
                                leftArrowClass: w8.leftArrowClass,
                                max: w8.max,
                                min: w8.min,
                                minuteText: w8.minuteText,
                                monthNames: w8.monthNames,
                                monthNamesShort: w8.monthNamesShort,
                                monthSuffix: w8.monthSuffix,
                                monthText: w8.monthText,
                                nowIcon: w8.nowIcon,
                                nowText: w8.nowText,
                                pmText: w8.pmText,
                                preset: w8.preset,
                                resetIcon: w8.resetIcon,
                                resetText: w8.resetText,
                                rightArrowClass: w8.rightArrowClass,
                                rtl: w8.rtl,
                                secText: w8.secText,
                                select: w8.select,
                                snap: w8.snap,
                                sort: w8.sort,
                                sortable: w8.sortable,
                                sortHandle: w8.sortHandle,
                                startIcon: w8.startIcon,
                                startText: w8.startText,
                                startYear: w8.startYear,
                                stepHour: w8.stepHour,
                                stepMinute: w8.stepMinute,
                                stepSecond: w8.stepSecond,
                                steps: w8.steps,
                                stopIcon: w8.stopIcon,
                                stopText: w8.stopText,
                                striped: w8.striped,
                                theme: w8.theme,
                                timeFormat: w8.timeFormat,
                                timeWheels: w8.timeWheels,
                                todayText: w8.todayText,
                                type: w8.type,
                                variant: w8.variant,
                                wrapperClass: w8.wrapperClass,
                                yearSuffix: w8.yearSuffix,
                                yearText: w8.yearText
                            }
                        };
                        var D8, S8, W8 = [],
                            R9 = {},
                            f9 = ['refresh', 'redraw', 'navigate', 'showMonthView', 'changeTab', 'addValue', 'removeValue', 'getDate', 'setDate', 'addEvent', 'removeEvent', 'getEvents', 'setEvents', 'setActiveDate', 'start', 'stop', 'reset', 'lap', 'resetlap', 'getTime', 'setTime', 'getEllapsedTime', 'setEllapsedTime'],
                            l9 = {
                                jsonp: 1,
                                getInst: 1,
                                init: 1,
                                destroy: 1
                            },
                            N9 = function(H9) {
                                a8[H9] = function() {
                                    W8.push({
                                        func: H9,
                                        args: arguments
                                    });
                                };
                            };
                        for (S8 in a8) {
                            if (typeof a8[S8] === 'function' && !l9[S8]) {
                                R9[S8] = a8[S8];
                                N9(S8);
                            }
                        }
                        for (D8 = 0; D8 < f9.length; D8++) {
                            N9(f9[D8]);
                        }
                        if (w8.preset == 'timer' && !F8.buttons) {
                            z9.settings.buttons = ['toggle', 'resetlap'];
                            if (w8.display !== 'inline') {
                                z9.settings.buttons.push('hide');
                            }
                        }
                        if (w8.preset == 'eventcalendar' && !F8.buttons && w8.display != 'inline') {
                            z9.settings.buttons = ['close'];
                        }
                       
					   
                            for (S8 in R9) {
                                a8[S8] = R9[S8];
                            }
                      
                            if (a8._hasPreset) {
                                x8 = D4.presets[a8._class][w8.preset];
                                if (x8) {
                                    x8 = x8.call(i8, a8);
                                    N7(w8, x8, F8);
                                }
                            }
                            a8._init(T9);
                            C8('onInit');
                            for (D8 = 0; D8 < W8.length; D8++) {
                                a8[W8[D8].func].apply(a8, W8[D8].args);
                            }
                            W8 = null;
                            R9 = null;
            
                    }
                };
                a8.destroy = function() {
                    if (a8) {
                        a8._destroy();
                        C8('onDestroy');
                        delete f7[i8.id];
                        a8 = null;
                    }
                };
                a8.tap = function(C9, F9, E9, K9, d9) {
                    function A9() {
                        c9 = false;
                    }

                    function Z9(m9) {
                        if (c9) {
                            if (d9 && new Date() - x9 < 100 || !w9) {
                                m9.preventDefault();
                                F9.call(c9, m9, a8);
                            }
                            c9 = false;
                            t8.preventClick();
                        }
                    }

                    function U9(Q9) {
                        if (c9 && !w9 && (Math.abs(d8(Q9, 'X') - i9) > K9 || Math.abs(d8(Q9, 'Y') - P9) > K9)) {
                            w9 = true;
                        }
                    }

                    function t9(M9) {
                        if (!c9) {
                            if (E9) {
                                M9.preventDefault();
                            }
                            c9 = this;
                            i9 = d8(M9, 'X');
                            P9 = d8(M9, 'Y');
                            w9 = false;
                            x9 = new Date();
                        }
                    }
                    var i9, P9, c9, w9, x9, a9 = W4(C9);
                    K9 = K9 || 9;
                    if (w8.tap) {
                        a9.on('touchstart.mbsc', t9).on('touchcancel.mbsc', A9).on('touchmove.mbsc', U9).on('touchend.mbsc', Z9);
                    }
                    a9.on('click.mbsc', function(p9) {
                        p9.preventDefault();
                        F9.call(this, p9, a8);
                    });
                };
                a8.trigger = function(L9, o9) {
                    var v9, Y9, X9, u9 = [E8, U8, x8, F8];
                    for (Y9 = 0; Y9 < 4; Y9++) {
                        X9 = u9[Y9];
                        if (X9 && X9[L9]) {
                            v9 = X9[L9].call(i8, o9 || {}, a8);
                        }
                    }
                    return v9;
                };
                a8.option = function(k9, B9) {
                    var J9 = {};
                    if (typeof k9 === 'object') {
                        J9 = k9;
                    } else {
                        J9[k9] = B9;
                    }
                    a8.init(J9);
                };
                a8.getInst = function() {
                    return a8;
                };
                F8 = F8 || {};
                C8 = a8.trigger;
                W4(i8).addClass('mbsc-comp');
                if (!i8.id) {
                    i8.id = 'mobiscroll' + ++q7;
                } else if (f7[i8.id]) {
                    f7[i8.id].destroy();
                }
                f7[i8.id] = a8;
            };
            W4(function() {
                if (z7.cookie.replace(/(?:(?:^|.*;\s*)mobiscrollClientError\s*\=\s*([^;]*).*$)|^.*$/, "$1") || /mobiscrollClientError/.test(R7.name || '')) {
                    x7();
                }
            });
            if (z7.addEventListener) {
                W4.each(['mouseover', 'mousedown', 'mouseup', 'click'], function(N3, z3) {
                    z7.addEventListener(z3, E7, true);
                });
            }
        }(window, document));
        (function(b3) {
            function y3(q3, c3, K3, H3, w3, a3, F3) {
                var l3 = new Date(q3, c3, K3, H3 || 0, w3 || 0, a3 || 0, F3 || 0);
                if (l3.getHours() == 23 && (H3 || 0) === 0) {
                    l3.setHours(l3.getHours() + 2);
                }
                return l3;
            }
            var T3 = R,
                f3 = T3.$;
            T3.util.datetime = {
                defaults: {
                    shortYearCutoff: '+10',
                    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
                    monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
                    dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
                    dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
                    dayNamesMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
                    amText: 'am',
                    pmText: 'pm',
                    getYear: function(i3) {
                        return i3.getFullYear();
                    },
                    getMonth: function(P3) {
                        return P3.getMonth();
                    },
                    getDay: function(x3) {
                        return x3.getDate();
                    },
                    getDate: y3,
                    getMaxDayOfMonth: function(C3, d3) {
                        return 32 - new Date(C3, d3, 32, 12).getDate();
                    },
                    getWeekNumber: function(E3) {
                        E3 = new Date(E3);
                        E3.setHours(0, 0, 0);
                        E3.setDate(E3.getDate() + 4 - (E3.getDay() || 7));
                        var A3 = new Date(E3.getFullYear(), 0, 1);
                        return Math.ceil(((E3 - A3) / 86400000 + 1) / 7);
                    }
                },
                adjustedDate: y3,
                formatDate: function(Y3, Z3, J3) {
                    if (!Z3) {
                        return null;
                    }
                    var M3 = f3.extend({}, T3.util.datetime.defaults, J3),
                        X3 = function(B3) {
                            var k3 = 0;
                            while (Q3 + 1 < Y3.length && Y3.charAt(Q3 + 1) == B3) {
                                k3++;
                                Q3++;
                            }
                            return k3;
                        },
                        m3 = function(O3, I3, s3) {
                            var V3 = '' + I3;
                            if (X3(O3)) {
                                while (V3.length < s3) {
                                    V3 = '0' + V3;
                                }
                            }
                            return V3;
                        },
                        o3 = function(r3, e3, G3, n3) {
                            return X3(r3) ? n3[e3] : G3[e3];
                        },
                        Q3, v3, U3 = '',
                        u3 = false;
                    for (Q3 = 0; Q3 < Y3.length; Q3++) {
                        if (u3) {
                            if (Y3.charAt(Q3) == "'" && !X3("'")) {
                                u3 = false;
                            } else {
                                U3 += Y3.charAt(Q3);
                            }
                        } else {
                            switch (Y3.charAt(Q3)) {
                                case 'd':
                                    U3 += m3('d', M3.getDay(Z3), 2);
                                    break;
                                case 'D':
                                    U3 += o3('D', Z3.getDay(), M3.dayNamesShort, M3.dayNames);
                                    break;
                                case 'o':
                                    U3 += m3('o', (Z3.getTime() - new Date(Z3.getFullYear(), 0, 0).getTime()) / 86400000, 3);
                                    break;
                                case 'm':
                                    U3 += m3('m', M3.getMonth(Z3) + 1, 2);
                                    break;
                                case 'M':
                                    U3 += o3('M', M3.getMonth(Z3), M3.monthNamesShort, M3.monthNames);
                                    break;
                                case 'y':
                                    v3 = M3.getYear(Z3);
                                    U3 += X3('y') ? v3 : (v3 % 100 < 10 ? '0' : '') + v3 % 100;
                                    break;
                                case 'h':
                                    var L3 = Z3.getHours();
                                    U3 += m3('h', L3 > 12 ? L3 - 12 : L3 === 0 ? 12 : L3, 2);
                                    break;
                                case 'H':
                                    U3 += m3('H', Z3.getHours(), 2);
                                    break;
                                case 'i':
                                    U3 += m3('i', Z3.getMinutes(), 2);
                                    break;
                                case 's':
                                    U3 += m3('s', Z3.getSeconds(), 2);
                                    break;
                                case 'a':
                                    U3 += Z3.getHours() > 11 ? M3.pmText : M3.amText;
                                    break;
                                case 'A':
                                    U3 += Z3.getHours() > 11 ? M3.pmText.toUpperCase() : M3.amText.toUpperCase();
                                    break;
                                case "'":
                                    if (X3("'")) {
                                        U3 += "'";
                                    } else {
                                        u3 = true;
                                    }
                                    break;
                                default:
                                    U3 += Y3.charAt(Q3);
                            }
                        }
                    }
                    return U3;
                },
                parseDate: function(T0, S3, P0) {
                    var j3 = f3.extend({}, T3.util.datetime.defaults, P0),
                        z0 = j3.defaultValue && j3.defaultValue.getTime ? j3.defaultValue : new Date();
                    if (!T0 || !S3) {
                        return z0;
                    }
                    if (S3.getTime) {
                        return S3;
                    }
                    S3 = typeof S3 == 'object' ? S3.toString() : S3 + '';
                    var q0 = j3.shortYearCutoff,
                        W3 = j3.getYear(z0),
                        R0 = j3.getMonth(z0) + 1,
                        N0 = j3.getDay(z0),
                        w0 = -1,
                        g3 = z0.getHours(),
                        i0 = z0.getMinutes(),
                        a0 = 0,
                        f0 = -1,
                        K0 = false,
                        b0 = function(C0) {
                            var x0 = D3 + 1 < T0.length && T0.charAt(D3 + 1) == C0;
                            if (x0) {
                                D3++;
                            }
                            return x0;
                        },
                        h3 = function(d0) {
                            b0(d0);
                            var A0 = d0 == '@' ? 14 : d0 == '!' ? 20 : d0 == 'y' ? 4 : d0 == 'o' ? 3 : 2,
                                t0 = new RegExp('^\\d{1,' + A0 + '}'),
                                E0 = S3.substr(y0).match(t0);
                            if (!E0) {
                                return 0;
                            }
                            y0 += E0[0].length;
                            return parseInt(E0[0], 10);
                        },
                        H0 = function(M0, Q0, m0) {
                            var Z0 = b0(M0) ? m0 : Q0,
                                U0;
                            for (U0 = 0; U0 < Z0.length; U0++) {
                                if (S3.substr(y0, Z0[U0].length).toLowerCase() == Z0[U0].toLowerCase()) {
                                    y0 += Z0[U0].length;
                                    return U0 + 1;
                                }
                            }
                            return 0;
                        },
                        c0 = function() {
                            y0++;
                        },
                        y0 = 0,
                        D3;
                    for (D3 = 0; D3 < T0.length; D3++) {
                        if (K0) {
                            if (T0.charAt(D3) == "'" && !b0("'")) {
                                K0 = false;
                            } else {
                                c0();
                            }
                        } else {
                            switch (T0.charAt(D3)) {
                                case 'd':
                                    N0 = h3('d');
                                    break;
                                case 'D':
                                    H0('D', j3.dayNamesShort, j3.dayNames);
                                    break;
                                case 'o':
                                    w0 = h3('o');
                                    break;
                                case 'm':
                                    R0 = h3('m');
                                    break;
                                case 'M':
                                    R0 = H0('M', j3.monthNamesShort, j3.monthNames);
                                    break;
                                case 'y':
                                    W3 = h3('y');
                                    break;
                                case 'H':
                                    g3 = h3('H');
                                    break;
                                case 'h':
                                    g3 = h3('h');
                                    break;
                                case 'i':
                                    i0 = h3('i');
                                    break;
                                case 's':
                                    a0 = h3('s');
                                    break;
                                case 'a':
                                    f0 = H0('a', [j3.amText, j3.pmText], [j3.amText, j3.pmText]) - 1;
                                    break;
                                case 'A':
                                    f0 = H0('A', [j3.amText, j3.pmText], [j3.amText, j3.pmText]) - 1;
                                    break;
                                case "'":
                                    if (b0("'")) {
                                        c0();
                                    } else {
                                        K0 = true;
                                    }
                                    break;
                                default:
                                    c0();
                            }
                        }
                    }
                    if (W3 < 100) {
                        W3 += new Date().getFullYear() - new Date().getFullYear() % 100 + (W3 <= (typeof q0 != 'string' ? q0 : new Date().getFullYear() % 100 + parseInt(q0, 10)) ? 0 : -100);
                    }
                    if (w0 > -1) {
                        R0 = 1;
                        N0 = w0;
                        do {
                            var F0 = 32 - new Date(W3, R0 - 1, 32, 12).getDate();
                            if (N0 <= F0) {
                                break;
                            }
                            R0++;
                            N0 -= F0;
                        } while (true);
                    }
                    g3 = f0 == -1 ? g3 : f0 && g3 < 12 ? g3 + 12 : !f0 && g3 == 12 ? 0 : g3;
                    var l0 = j3.getDate(W3, R0 - 1, N0, g3, i0, a0);
                    if (j3.getYear(l0) != W3 || j3.getMonth(l0) + 1 != R0 || j3.getDay(l0) != N0) {
                        return z0;
                    }
                    return l0;
                }
            };
        }());
        var T = R.util.datetime;
        (function(B0, L0, I0) {
            var k0, J0, X0 = R,
                p0 = X0.$,
                O0 = X0.platform,
                v0 = X0.util,
                s0 = v0.constrain,
                V0 = v0.isString,
                u0 = v0.getCoord,
                o0 = v0.animEnd,
                G0 = /(iphone|ipod)/i.test(navigator.userAgent) && O0.majorVersion >= 7,
                r0 = O0.name == 'ios' && O0.majorVersion == 8,
                Y0 = function() {},
                e0 = function(n0) {
                    n0.preventDefault();
                };
            X0.classes.Frame = function(G5f, u5f, j5f) {
                function v5f() {
                    j0.setVal(null, true);
                }

                function L5f() {
                    R5f('onCancel', {
                        valueText: j0._value
                    });
                }

                function k5f() {
                    j0._fillValue();
                    R5f('onSet', {
                        valueText: j0._value
                    });
                }

                function F5f(b1f, l1f) {
                    if (b1f) {
                        b1f();
                    }
                    if (j0.show() !== false) {
                        k0 = l1f;
                        setTimeout(function() {
                            J0 = false;
                        }, 300);
                    }
                }

                function r5f() {
                    if (p0(L0.activeElement).is('input,textarea')) {
                        L0.activeElement.blur();
                    }
                }

                function e5f(y1f) {
                    if (y1f.target.nodeType && !b5f.contains(y1f.target)) {
                        b5f.focus();
                    }
                }

                function s5f(N1f) {
                    clearTimeout(m5f[N1f.type]);
                    m5f[N1f.type] = setTimeout(function() {
                        var f1f, T1f = N1f.type == 'scroll';
                        if (T1f && !Y5f) {
                            return;
                        }
                        j0.position(!T1f);
                        if (N1f.type == 'orientationchange') {
                            b5f.style.display = 'none';
                            f1f = b5f.offsetHeight;
                            b5f.style.display = '';
                        }
                    }, 200);
                }

                function I5f(z1f) {
                    var R1f = k0,
                        W5f = g0.focusOnClose;
                    j0._markupRemove();
                    h0.remove();
                    if (!X0.activeInstance) {
                        if (D0) {
                            x5f.removeClass(d5f);
                            if (w5f) {
                                N5f.css({
                                    top: '',
                                    left: ''
                                });
                                z5f.scrollLeft(C5f);
                                z5f.scrollTop(E5f);
                            }
                        }
                        if (!z1f) {
                            if (!R1f) {
                                R1f = S0;
                            }
                            setTimeout(function() {
                                if (W5f === I0 || W5f === true) {
                                    J0 = true;
                                    R1f[0].focus();
                                } else if (W5f) {
                                    p0(W5f)[0].focus();
                                }
                            }, 200);
                        }
                    }
                    k0 = null;
                    j0._isVisible = false;
                    Z5f = false;
                    R5f('onHide');
                }

                function O5f(D5f) {
                    if (!D5f) {
                        J5f.focus();
                    }
                    j0.ariaMessage(g0.ariaMessage);
                }

                function V5f(S5f) {
                    if (S5f.keyCode == 13) {
                        j0.select();
                    } else if (S5f.keyCode == 27) {
                        j0.cancel();
                    }
                }

                function a5f(h5f) {
                    if (T5f) {
                        T5f.removeClass('mbsc-fr-btn-a');
                        T5f = null;
                    }
                    if (h5f.type === 'mouseup') {
                        p0(L0).off('mouseup', a5f);
                    } else if (h5f.type === 'pointerup') {
                        p0(L0).off('pointerup', a5f);
                    }
                }

                function n5f(g5f) {
                    if (T5f) {
                        T5f.removeClass('mbsc-fr-btn-a');
                    }
                    T5f = p0(this);
                    if (!T5f.hasClass('mbsc-fr-btn-d') && !T5f.hasClass('mbsc-fr-btn-nhl')) {
                        T5f.addClass('mbsc-fr-btn-a');
                    }
                    if (g5f.type === 'mousedown') {
                        p0(L0).on('mouseup', a5f);
                    } else if (g5f.type === 'pointerdown') {
                        p0(L0).on('pointerup', a5f);
                    }
                }
                var A5f, N5f, X5f, x5f, h0, P5f, o5f, c5f, z5f, p5f, q5f, T5f, W0, f5f, D0, Z5f, d5f, l5f, H5f, y5f, K5f, w5f, J5f, b5f, i5f, M5f, g0, C5f, Y5f, E5f, B5f, R5f, t5f, U5f, j0 = this,
                    S0 = p0(G5f),
                    Q5f = [],
                    m5f = {};
                X0.classes.Base.call(this, G5f, u5f, true);
                j0.position = function(Y1f) {
                    var x1f, m1f, E1f, A1f, w1f, U1f, Z1f, M1f, Q1f, t1f, p1f, H1f, q1f, C1f, K1f, F1f, d1f = {},
                        a1f = 0,
                        c1f = 0,
                        i1f = 0,
                        P1f = 0;
                    if (M5f || !Z5f) {
                        return;
                    }
                    j0._position(h0);
                    H1f = l5f.offsetHeight;
                    q1f = l5f.offsetWidth;
                    if (t5f === q1f && U5f === H1f && Y1f) {
                        return;
                    }
                    if (j0._isFullScreen || /top|bottom/.test(g0.display)) {
                        c5f.width(q1f);
                    } else {
                        p5f.width('');
                    }
                    if (R5f('onPosition', {
                            target: l5f,
                            windowWidth: q1f,
                            windowHeight: H1f
                        }) === false || !D0) {
                        return;
                    }
                    p0('.mbsc-comp', h0).each(function() {
                        var X1f = X0.instances[this.id];
                        if (X1f && X1f !== j0 && X1f.position) {
                            X1f.position();
                        }
                    });
                    if (!j0._isFullScreen && /center|bubble/.test(g0.display)) {
                        p0('.mbsc-w-p', h0).each(function() {
                            C1f = this.getBoundingClientRect().width;
                            P1f += C1f;
                            i1f = C1f > i1f ? C1f : i1f;
                        });
                        p5f.css({
                            'width': j0._isLiquid ? Math.min(g0.maxPopupWidth, q1f - 16) : Math.ceil(P1f > q1f ? i1f : P1f),
                            'white-space': P1f > q1f ? '' : 'nowrap'
                        });
                    }
                    H5f = b5f.offsetWidth;
                    y5f = b5f.offsetHeight;
                    j0.scrollLock = Y5f = y5f <= H1f && H5f <= q1f;
                    if (K5f) {
                        a1f = z5f.scrollLeft();
                        c1f = z5f.scrollTop();
                    }
                    if (g0.display == 'center') {
                        F1f = Math.max(0, a1f + (q1f - H5f) / 2);
                        K1f = Math.max(0, c1f + (H1f - y5f) / 2);
                    } else if (g0.display == 'bubble') {
                        x1f = g0.anchor === I0 ? S0 : p0(g0.anchor);
                        Z1f = p0('.mbsc-fr-arr-i', h0)[0];
                        A1f = x1f.offset();
                        w1f = A1f.top + (f5f ? c1f - N5f.offset().top : 0);
                        U1f = A1f.left + (f5f ? a1f - N5f.offset().left : 0);
                        m1f = x1f[0].offsetWidth;
                        E1f = x1f[0].offsetHeight;
                        M1f = Z1f.offsetWidth;
                        Q1f = Z1f.offsetHeight;
                        F1f = s0(U1f - (H5f - m1f) / 2, a1f + 8, a1f + q1f - H5f - 8);
                        K1f = w1f - y5f - Q1f / 2;
                        if (K1f < c1f || w1f > c1f + H1f) {
                            c5f.removeClass('mbsc-fr-bubble-top').addClass('mbsc-fr-bubble-bottom');
                            K1f = w1f + E1f + Q1f / 2;
                        } else {
                            c5f.removeClass('mbsc-fr-bubble-bottom').addClass('mbsc-fr-bubble-top');
                        }
                        p0('.mbsc-fr-arr', h0).css({
                            left: s0(U1f + m1f / 2 - (F1f + (H5f - M1f) / 2), 0, M1f)
                        });
                    } else {
                        F1f = a1f;
                        K1f = g0.display == 'top' ? c1f : Math.max(0, c1f + H1f - y5f);
                    }
                    if (K5f) {
                        t1f = Math.max(K1f + y5f, f5f ? N5f[0].scrollHeight : p0(L0).height());
                        p1f = Math.max(F1f + H5f, f5f ? N5f[0].scrollWidth : p0(L0).width());
                        o5f.css({
                            width: p1f,
                            height: t1f
                        });
                        if (g0.scroll && g0.display == 'bubble' && (K1f + y5f + 8 > c1f + H1f || w1f > c1f + H1f || w1f + E1f < c1f)) {
                            M5f = true;
                            setTimeout(function() {
                                M5f = false;
                            }, 300);
                            z5f.scrollTop(Math.min(w1f, K1f + y5f - H1f + 8, t1f - H1f));
                        }
                    }
                    d1f.top = Math.floor(K1f);
                    d1f.left = Math.floor(F1f);
                    c5f.css(d1f);
                    t5f = q1f;
                    U5f = H1f;
                };
                j0.attachShow = function(J1f, u1f) {
                    var v1f, L1f = p0(J1f),
                        o1f = L1f.prop('readonly');
                    if (g0.display !== 'inline') {
                        if ((g0.showOnFocus || g0.showOnTap) && L1f.is('input,select')) {
                            L1f.prop('readonly', true).on('mousedown.mbsc', function(k1f) {
                                k1f.preventDefault();
                            }).on('focus.mbsc', function() {
                                if (j0._isVisible) {
                                    this.blur();
                                }
                            });
                            v1f = p0('label[for="' + L1f.attr('id') + '"]');
                            if (!v1f.length) {
                                v1f = L1f.closest('label');
                            }
                        }
                        if (L1f.is('select')) {
                            return;
                        }
                        if (g0.showOnFocus) {
                            L1f.on('focus.mbsc', function() {
                                if (!J0) {
                                    F5f(u1f, L1f);
                                }
                            });
                        }
                        if (g0.showOnTap) {
                            L1f.on('keydown.mbsc', function(B1f) {
                                if (B1f.keyCode == 32 || B1f.keyCode == 13) {
                                    B1f.preventDefault();
                                    B1f.stopPropagation();
                                    F5f(u1f, L1f);
                                }
                            });
                            j0.tap(L1f, function() {
                                F5f(u1f, L1f);
                            });
                            if (v1f && v1f.length) {
                                j0.tap(v1f, function() {
                                    F5f(u1f, L1f);
                                });
                            }
                        }
                        Q5f.push({
                            readOnly: o1f,
                            el: L1f,
                            lbl: v1f
                        });
                    }
                };
                j0.select = function() {
                    if (D0) {
                        j0.hide(false, 'set', false, k5f);
                    } else {
                        k5f();
                    }
                };
                j0.cancel = function() {
                    if (D0) {
                        j0.hide(false, 'cancel', false, L5f);
                    } else {
                        L5f();
                    }
                };
                j0.clear = function() {
                    j0._clearValue();
                    R5f('onClear');
                    if (D0 && j0._isVisible && !j0.live) {
                        j0.hide(false, 'clear', false, v5f);
                    } else {
                        v5f();
                    }
                };
                j0.enable = function() {
                    g0.disabled = false;
                    if (j0._isInput) {
                        S0.prop('disabled', false);
                    }
                };
                j0.disable = function() {
                    g0.disabled = true;
                    if (j0._isInput) {
                        S0.prop('disabled', true);
                    }
                };
                j0.show = function(G1f, s1f) {
                    var n1f, O1f;
                    if (g0.disabled || j0._isVisible) {
                        return;
                    }
                    j0._readValue();
                    if (R5f('onBeforeShow') === false) {
                        return false;
                    }
                    W0 = g0.animate;
                    q5f = g0.buttons || [];
                    K5f = f5f || g0.display == 'bubble';
                    w5f = G0 && !K5f;
                    n1f = q5f.length > 0;
                    if (W0 !== false) {
                        if (g0.display == 'top') {
                            W0 = 'slidedown';
                        } else if (g0.display == 'bottom') {
                            W0 = 'slideup';
                        } else if (g0.display == 'center' || g0.display == 'bubble') {
                            W0 = g0.animate || 'pop';
                        }
                    }
                    if (D0) {
                        d5f = 'mbsc-fr-lock' + (w5f ? ' mbsc-fr-lock-ios' : '') + (f5f ? ' mbsc-fr-lock-ctx' : '');
                        E5f = Math.max(0, z5f.scrollTop());
                        C5f = Math.max(0, z5f.scrollLeft());
                        t5f = 0;
                        U5f = 0;
                        if (w5f && !x5f.hasClass('mbsc-fr-lock')) {
                            N5f.css({
                                top: -E5f + 'px',
                                left: -C5f + 'px'
                            });
                        }
                        x5f.addClass(d5f);
                        r5f();
                        if (X0.activeInstance) {
                            X0.activeInstance.hide();
                        }
                        X0.activeInstance = j0;
                    }
                    O1f = '<div lang="' + g0.lang + '" class="mbsc-fr mbsc-no-touch mbsc-' + g0.theme + (g0.baseTheme ? ' mbsc-' + g0.baseTheme : '') + ' mbsc-fr-' + g0.display + ' ' + (g0.cssClass || '') + ' ' + (g0.compClass || '') + (j0._isLiquid ? ' mbsc-fr-liq' : '') + (w5f ? ' mbsc-platform-ios' : '') + (n1f ? q5f.length >= 3 ? ' mbsc-fr-btn-block ' : '' : ' mbsc-fr-nobtn') + '">' + (D0 ? '<div class="mbsc-fr-persp"><div class="mbsc-fr-overlay"></div><div role="dialog" tabindex="-1" class="mbsc-fr-scroll">' : '') + '<div class="mbsc-fr-popup' + (g0.rtl ? ' mbsc-rtl' : ' mbsc-ltr') + (g0.headerText ? ' mbsc-fr-has-hdr' : '') + '">' + (g0.display === 'bubble' ? '<div class="mbsc-fr-arr-w"><div class="mbsc-fr-arr-i"><div class="mbsc-fr-arr"></div></div></div>' : '') + '<div class="mbsc-fr-w"><div aria-live="assertive" class="mbsc-fr-aria mbsc-fr-hdn"></div>' + (g0.headerText ? '<div class="mbsc-fr-hdr">' + (V0(g0.headerText) ? g0.headerText : '') + '</div>' : '') + '<div class="mbsc-fr-c">';
                    O1f += j0._generateContent();
                    O1f += '</div>';
					if (n1f) {
						O1f += '<div class="mbsc-fr-btn-cont">';
						p0.each(q5f, function(b, a) {
							a = V0(a) ? j0.buttons[a] : a;
							if (a.handler === 'set') {
								a.parentClass = 'mbsc-fr-btn-s';
							}
							if (a.handler === 'cancel') {
								a.parentClass = 'mbsc-fr-btn-c';
							}
							O1f += '<div' + (g0.btnWidth ? ' style="width:' + 100 / q5f.length + '%"' : '') + ' class="mbsc-fr-btn-w ' + (a.parentClass || '') + '"><div tabindex="0" role="button" class="mbsc-fr-btn' + b + ' mbsc-fr-btn-e ' + (a.cssClass === I0 ? g0.btnClass : a.cssClass) + (a.icon ? ' mbsc-ic mbsc-ic-' + a.icon : '') + '">' + (a.text || '') + '</div></div>';
						});
						O1f += '</div>';
					}
					O1f += '</div></div></div></div>' + (D0 ? '</div></div>' : '');
                    h0 = p0(O1f);
                    o5f = p0('.mbsc-fr-persp', h0);
                    P5f = p0('.mbsc-fr-scroll', h0);
                    p5f = p0('.mbsc-fr-w', h0);
                    X5f = p0('.mbsc-fr-hdr', h0);
                    c5f = p0('.mbsc-fr-popup', h0);
                    A5f = p0('.mbsc-fr-aria', h0);
                    l5f = h0[0];
                    J5f = P5f[0];
                    b5f = c5f[0];
                    j0._markup = h0;
                    j0._header = X5f;
                    j0._isVisible = true;
                    i5f = 'orientationchange resize';
                    j0._markupReady(h0);
                    R5f('onMarkupReady', {
                        target: l5f
                    });
                    if (D0) {
                        p0(B0).on('keydown', V5f);
                        if (g0.scrollLock) {
                            h0.on('touchmove mousewheel wheel', function(j1f) {
                                if (Y5f) {
                                    j1f.preventDefault();
                                }
                            });
                        }
                        if (g0.focusTrap) {
                            z5f.on('focusin', e5f);
                        }
                        if (g0.closeOnOverlayTap) {
                            var I1f, V1f, e1f, r1f;
                            P5f.on('touchstart mousedown', function(g1f) {
                                if (!V1f && g1f.target == P5f[0]) {
                                    V1f = true;
                                    I1f = false;
                                    e1f = u0(g1f, 'X');
                                    r1f = u0(g1f, 'Y');
                                }
                            }).on('touchmove mousemove', function(h1f) {
                                if (V1f && !I1f && (Math.abs(u0(h1f, 'X') - e1f) > 9 || Math.abs(u0(h1f, 'Y') - r1f) > 9)) {
                                    I1f = true;
                                }
                            }).on('touchcancel', function() {
                                V1f = false;
                            }).on('touchend touchcancel mouseup', function(S1f) {
                                if (V1f && !I1f) {
                                    j0.cancel();
                                    if (S1f.type != 'mouseup') {
                                        v0.preventClick();
                                    }
                                }
                                V1f = false;
                            });
                        }
                        if (K5f) {
                            i5f += ' scroll';
                        }
                    }
                    setTimeout(function() {
                        if (D0) {
                            h0.appendTo(N5f);
                        } else if (S0.is('div') && !j0._hasContent) {
                            S0.empty().append(h0);
                        } else {
                            if (S0.hasClass('mbsc-control')) {
                                var D1f = S0.closest('.mbsc-control-w');
                                h0.insertAfter(D1f);
                                if (D1f.hasClass('mbsc-select')) {
                                    D1f.addClass('mbsc-select-inline');
                                }
                            } else {
                                h0.insertAfter(S0);
                            }
                        }
                        Z5f = true;
                        j0._markupInserted(h0);
                        R5f('onMarkupInserted', {
                            target: l5f
                        });
                        h0.on('selectstart mousedown', e0).on('click', '.mbsc-fr-btn-e', e0).on('keydown', '.mbsc-fr-btn-e', function(W1f) {
                            if (W1f.keyCode == 32) {
                                W1f.preventDefault();
                                W1f.stopPropagation();
                                this.click();
                            }
                        }).on('keydown', function(R2f) {
                            if (R2f.keyCode == 32) {
                                R2f.preventDefault();
                            } else if (R2f.keyCode == 9 && D0 && g0.focusTrap) {
                                var z2f = h0.find('[tabindex="0"]').filter(function() {
                                        return this.offsetWidth > 0 || this.offsetHeight > 0;
                                    }),
                                    f2f = z2f.index(p0(':focus', h0)),
                                    N2f = z2f.length - 1,
                                    T2f = 0;
                                if (R2f.shiftKey) {
                                    N2f = 0;
                                    T2f = -1;
                                }
                                if (f2f === N2f) {
                                    z2f.eq(T2f)[0].focus();
                                    R2f.preventDefault();
                                }
                            }
                        }).on('touchstart mousedown pointerdown', '.mbsc-fr-btn-e', n5f).on('touchend', '.mbsc-fr-btn-e', a5f);
                        p0('input,select,textarea', h0).on('selectstart mousedown', function(y2f) {
                            y2f.stopPropagation();
                        }).on('keydown', function(b2f) {
                            if (b2f.keyCode == 32) {
                                b2f.stopPropagation();
                            }
                        });
                        l5f.addEventListener('touchstart', function() {
                            if (!B5f) {
                                B5f = true;
                                N5f.find('.mbsc-no-touch').removeClass('mbsc-no-touch');
                            }
                        }, true);
                        p0.each(q5f, function(H2f, l2f) {
                            j0.tap(p0('.mbsc-fr-btn' + H2f, h0), function(q2f) {
                                l2f = V0(l2f) ? j0.buttons[l2f] : l2f;
                                (V0(l2f.handler) ? j0.handlers[l2f.handler] : l2f.handler).call(this, q2f, j0);
                            }, true);
                        });
                        j0._attachEvents(h0);
                        j0.position();
                        z5f.on(i5f, s5f);
                        if (D0) {
                            if (W0 && !G1f) {
                                h0.addClass('mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-' + W0).on(o0, function() {
                                    h0.off(o0).removeClass('mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-' + W0).find('.mbsc-fr-popup').removeClass('mbsc-anim-' + W0);
                                    O5f(s1f);
                                }).find('.mbsc-fr-popup').addClass('mbsc-anim-' + W0);
                            } else {
                                O5f(s1f);
                            }
                        }
                        R5f('onShow', {
                            target: l5f,
                            valueText: j0._tempValue
                        });
                    }, w5f ? 100 : 0);
                };
                j0.hide = function(K2f, w2f, a2f, F2f) {
                    if (!j0._isVisible || !a2f && !j0._isValid && w2f == 'set' || !a2f && R5f('onBeforeClose', {
                            valueText: j0._tempValue,
                            button: w2f
                        }) === false) {
                        return false;
                    }
                    if (D0) {
                        r5f();
                        p0(B0).off('keydown', V5f);
                        delete X0.activeInstance;
                    }
                    if (h0) {
                        if (D0 && W0 && !K2f && !h0.hasClass('mbsc-anim-trans')) {
                            h0.addClass('mbsc-anim-out mbsc-anim-trans mbsc-anim-trans-' + W0).on(o0, function() {
                                h0.off(o0);
                                I5f(K2f);
                            }).find('.mbsc-fr-popup').addClass('mbsc-anim-' + W0);
                        } else {
                            I5f(K2f);
                        }
                        j0._detachEvents(h0);
                        z5f.off(i5f, s5f).off('focusin', e5f);
                    }
                    if (F2f) {
                        F2f();
                    }
                    R5f('onClose', {
                        valueText: j0._value
                    });
                };
                j0.ariaMessage = function(i2f) {
                    A5f.html('');
                    setTimeout(function() {
                        A5f.html(i2f);
                    }, 100);
                };
                j0.isVisible = function() {
                    return j0._isVisible;
                };
                j0.setVal = Y0;
                j0.getVal = Y0;
                j0._generateContent = Y0;
                j0._attachEvents = Y0;
                j0._detachEvents = Y0;
                j0._readValue = Y0;
                j0._clearValue = Y0;
                j0._fillValue = Y0;
                j0._markupReady = Y0;
                j0._markupInserted = Y0;
                j0._markupRemove = Y0;
                j0._position = Y0;
                j0.__processSettings = Y0;
                j0.__init = Y0;
                j0.__destroy = Y0;
                j0._destroy = function() {
                    j0.hide(true, false, true);
                    S0.off('.mbsc');
                    p0.each(Q5f, function(x2f, P2f) {
                        P2f.el.off('.mbsc').prop('readonly', P2f.readOnly);
                        if (P2f.lbl) {
                            P2f.lbl.off('.mbsc');
                        }
                    });
                    j0.__destroy();
                };
                j0._processSettings = function() {
                    var C2f, d2f;
                    j0.__processSettings();
                    g0.buttons = g0.buttons || (g0.display !== 'inline' ? ['set', 'cancel'] : []);
                    g0.headerText = g0.headerText === I0 ? g0.display !== 'inline' ? '{value}' : false : g0.headerText;
                    q5f = g0.buttons || [];
                    D0 = g0.display !== 'inline';
                    f5f = g0.context != 'body';
                    N5f = p0(g0.context);
                    x5f = f5f ? N5f : p0('body,html');
                    j0._window = z5f = p0(f5f ? g0.context : B0);
                    j0.live = true;
                    for (d2f = 0; d2f < q5f.length; d2f++) {
                        C2f = q5f[d2f];
                        if (C2f == 'ok' || C2f == 'set' || C2f.handler == 'set') {
                            j0.live = false;
                        }
                    }
                    j0.buttons.set = {
                        text: g0.setText,
                        icon: g0.setIcon,
                        handler: 'set'
                    };
                    j0.buttons.cancel = {
                        text: g0.cancelText,
                        icon: g0.cancelIcon,
                        handler: 'cancel'
                    };
                    j0.buttons.close = {
                        text: g0.closeText,
                        icon: g0.closeIcon,
                        handler: 'cancel'
                    };
                    j0.buttons.clear = {
                        text: g0.clearText,
                        icon: g0.clearIcon,
                        handler: 'clear'
                    };
                    j0._isInput = S0.is('input');
                };
                j0._init = function() {
                    if (j0._isVisible) {
                        j0.hide(true, false, true);
                    }
                    S0.off('.mbsc');
                    j0.__init();
                    j0._isLiquid = g0.layout == 'liquid';
                    if (D0) {
                        j0._readValue();
                        if (!j0._hasContent) {
                            j0.attachShow(S0);
                        }
                    } else {
                        j0.show();
                    }
                    S0.on('change.mbsc', function() {
                        if (!j0._preventChange) {
                            j0.setVal(S0.val(), true, false);
                        }
                        j0._preventChange = false;
                    });
                };
                j0.buttons = {};
                j0.handlers = {
                    set: j0.select,
                    cancel: j0.cancel,
                    clear: j0.clear
                };
                j0._value = null;
                j0._isValid = true;
                j0._isVisible = false;
                g0 = j0.settings;
                R5f = j0.trigger;
                if (!j5f) {
                    j0.init(u5f);
                }
            };
            X0.classes.Frame.prototype._defaults = {
                lang: 'en',
                setText: 'Set',
                selectedText: '{count} selected',
                closeText: 'Close',
                cancelText: 'Cancel',
                clearText: 'Clear',
                context: 'body',
                maxPopupWidth: 600,
                disabled: false,
                closeOnOverlayTap: true,
                showOnFocus: false,
                showOnTap: true,
                display: 'center',
                scroll: true,
                scrollLock: true,
                tap: true,
                btnClass: 'mbsc-fr-btn',
                btnWidth: true,
                focusTrap: true,
                focusOnClose: !r0
            };
            X0.themes.frame.mobiscroll = {
                headerText: false,
                btnWidth: false
            };
            X0.themes.scroller.mobiscroll = p0.extend({}, X0.themes.frame.mobiscroll, {
                rows: 5,
                showLabel: false,
                selectedLineBorder: 1,
                weekDays: 'min',
                checkIcon: 'ion-ios7-checkmark-empty',
                btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down5',
                btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up5',
                btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left5',
                btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right5'
            });
            p0(B0).on('focus', function() {
                if (k0) {
                    J0 = true;
                }
            });
        }(window, document));
        (function(m2f) {
            var Z2f = R,
                t2f = Z2f.$,
                Q2f = Z2f.classes,
                E2f = Z2f.util,
                A2f = E2f.constrain,
                L2f = E2f.jsPrefix,
                B2f = E2f.prefix,
                U2f = E2f.getCoord,
                X2f = E2f.getPosition,
                v2f = E2f.testTouch,
                M2f = E2f.isNumeric,
                u2f = E2f.isString,
                o2f = /(iphone|ipod|ipad)/i.test(navigator.userAgent),
                J2f = function() {},
                p2f = window.requestAnimationFrame || function(V2f) {
                    V2f();
                },
                Y2f = window.cancelAnimationFrame || J2f;
            Q2f.ScrollView = function(H6f, Y6f, V6f) {
                function C6f(D6f, W6f, f4f, T4f) {
                    var z4f = D6f != n2f,
                        N4f = W6f > 1,
                        R4f = function() {
                            clearInterval(P6f);
                            clearTimeout(Z6f);
                            y6f = false;
                            n2f = D6f;
                            e2f.posX = I2f ? 0 : D6f;
                            e2f.posY = I2f ? D6f : 0;
                            if (z4f) {
                                S2f('onMove', e2f);
                            }
                            if (N4f) {
                                S2f('onAnimationEnd', e2f);
                            }
                            if (T4f) {
                                T4f();
                            }
                        };
                    e2f = {
                        posX: I2f ? 0 : n2f,
                        posY: I2f ? n2f : 0,
                        originX: I2f ? 0 : g2f,
                        originY: I2f ? g2f : 0,
                        direction: D6f - n2f > 0 ? I2f ? 270 : 360 : I2f ? 90 : 180
                    };
                    n2f = D6f;
                    if (N4f) {
                        e2f.destinationX = I2f ? 0 : D6f;
                        e2f.destinationY = I2f ? D6f : 0;
                        e2f.duration = W6f;
                        e2f.transitionTiming = K6f;
                        S2f('onAnimationStart', e2f);
                    }
                    Q6f[L2f + 'Transition'] = W6f ? B2f + 'transform ' + Math.round(W6f) + 'ms ' + K6f : '';
                    Q6f[L2f + 'Transform'] = 'translate3d(' + (I2f ? '0,' + D6f + 'px,' : D6f + 'px,' + '0,') + '0)';
                    if (!z4f && !y6f || !W6f || W6f <= 1) {
                        R4f();
                    } else if (W6f) {
                        y6f = !f4f;
                        clearInterval(P6f);
                        P6f = setInterval(function() {
                            var y4f = +X2f(z6f, I2f) || 0;
                            e2f.posX = I2f ? 0 : y4f;
                            e2f.posY = I2f ? y4f : 0;
                            S2f('onMove', e2f);
                            if (Math.abs(y4f - D6f) < 2) {
                                R4f();
                            }
                        }, 100);
                        clearTimeout(Z6f);
                        Z6f = setTimeout(function() {
                            R4f();
                        }, W6f);
                    }
                    if (O2f.sync) {
                        O2f.sync(D6f, W6f, K6f);
                    }
                }

                function u6f(h6f) {
                    var j6f, S6f, g6f;
                    if (f6f) {
                        h6f = A2f(h6f, -j2f * f6f, j2f * f6f);
                    }
                    g6f = A2f(Math.round((g2f + h6f) / j2f) * j2f, R6f, W2f);
                    N6f = Math.round(g6f / j2f);
                    if (h2f) {
                        if (h6f < 0) {
                            for (j6f = h2f.length - 1; j6f >= 0; j6f--) {
                                if (Math.abs(g6f) + a6f >= h2f[j6f].breakpoint) {
                                    N6f = j6f;
                                    x6f = 2;
                                    g6f = h2f[j6f].snap2;
                                    break;
                                }
                            }
                        } else if (h6f >= 0) {
                            for (j6f = 0; j6f < h2f.length; j6f++) {
                                if (Math.abs(g6f) <= h2f[j6f].breakpoint) {
                                    N6f = j6f;
                                    x6f = 1;
                                    g6f = h2f[j6f].snap1;
                                    break;
                                }
                            }
                        }
                        g6f = A2f(g6f, R6f, W2f);
                    }
                    S6f = O2f.time || (n2f < R6f || n2f > W2f ? 1000 : Math.max(1000, Math.abs(g6f - n2f) * O2f.timeUnit));
                    e2f.destinationX = I2f ? 0 : g6f;
                    e2f.destinationY = I2f ? g6f : 0;
                    e2f.duration = S6f;
                    e2f.transitionTiming = K6f;
                    S2f('onGestureEnd', e2f);
                    C6f(g6f, S6f);
                }

                function J6f(n6f) {
                    n6f = n6f.originalEvent || n6f;
                    G2f = I2f ? n6f.deltaY || n6f.wheelDelta || n6f.detail : n6f.deltaX;
                    S2f('onStart', {
                        domEvent: n6f
                    });
                    if (O2f.stopProp) {
                        n6f.stopPropagation();
                    }
                    if (G2f) {
                        n6f.preventDefault();
                        if (n6f.deltaMode && n6f.deltaMode == 1) {
                            G2f *= 5;
                        }
                        G2f = A2f(-G2f, -20, 20);
                        g2f = n2f;
                        if (O2f.readonly || g2f + G2f < R6f || g2f + G2f > W2f) {
                            return;
                        }
                        if (!l6f) {
                            e2f = {
                                posX: I2f ? 0 : n2f,
                                posY: I2f ? n2f : 0,
                                originX: I2f ? 0 : g2f,
                                originY: I2f ? g2f : 0,
                                direction: G2f > 0 ? I2f ? 270 : 360 : I2f ? 90 : 180
                            };
                            S2f('onGestureStart', e2f);
                        }
                        if (!b6f) {
                            b6f = true;
                            d6f = p2f(k6f);
                        }
                        l6f = true;
                        clearTimeout(v6f);
                        v6f = setTimeout(function() {
                            Y2f(d6f);
                            b6f = false;
                            l6f = false;
                            u6f(G2f);
                        }, 200);
                    }
                }

                function E6f(G6f) {
                    if (F6f) {
                        var e6f, r6f = new Date() - L6f;
                        if (O2f.stopProp) {
                            G6f.stopPropagation();
                        }
                        Y2f(d6f);
                        b6f = false;
                        if (!q6f && s2f.scrolled) {
                            if (O2f.momentum && r6f < 300) {
                                e6f = G2f / r6f;
                                G2f = Math.max(Math.abs(G2f), e6f * e6f / O2f.speedUnit) * (G2f < 0 ? -1 : 1);
                            }
                            u6f(G2f);
                        }
                        if (c6f) {
                            clearTimeout(p6f);
                            D2f.addClass('mbsc-btn-a');
                            setTimeout(function() {
                                D2f.removeClass('mbsc-btn-a');
                            }, 100);
                            if (!q6f && !s2f.scrolled) {
                                S2f('onBtnTap', {
                                    target: D2f[0]
                                });
                            }
                        }
                        if (G6f.type == 'mouseup') {
                            t2f(document).off('mousemove', A6f).off('mouseup', E6f);
                        }
                        F6f = false;
                    }
                }

                function k6f() {
                    if (f6f) {
                        G2f = A2f(G2f, -j2f * f6f, j2f * f6f);
                    }
                    C6f(A2f(g2f + G2f, R6f - t6f, W2f + t6f));
                    b6f = false;
                }

                function A6f(s6f) {
                    if (F6f) {
                        if (O2f.stopProp) {
                            s6f.stopPropagation();
                        }
                        M6f = U2f(s6f, 'X');
                        B6f = U2f(s6f, 'Y');
                        i6f = M6f - U6f;
                        w6f = B6f - X6f;
                        G2f = I2f ? w6f : i6f;
                        if (c6f && (Math.abs(w6f) > 5 || Math.abs(i6f) > 5)) {
                            clearTimeout(p6f);
                            D2f.removeClass('mbsc-btn-a');
                            c6f = false;
                        }
                        if (s2f.scrolled || !q6f && Math.abs(G2f) > 5) {
                            if (!l6f) {
                                S2f('onGestureStart', e2f);
                            }
                            s2f.scrolled = l6f = true;
                            if (!b6f) {
                                b6f = true;
                                d6f = p2f(k6f);
                            }
                        }
                        if (I2f || O2f.scrollLock) {
                            s6f.preventDefault();
                        } else {
                            if (s2f.scrolled) {
                                s6f.preventDefault();
                            } else if (Math.abs(w6f) > 7) {
                                q6f = true;
                                s2f.scrolled = true;
                                T6f.trigger('touchend');
                            }
                        }
                    }
                }

                function o6f(I6f) {
                    S2f('onStart', {
                        domEvent: I6f
                    });
                    if (O2f.stopProp) {
                        I6f.stopPropagation();
                    }
                    if (O2f.prevDef || I6f.type == 'mousedown') {
                        I6f.preventDefault();
                    }
                    if (O2f.readonly || O2f.lock && y6f) {
                        return;
                    }
                    if (v2f(I6f, this) && !F6f && R.CsDrb) {
                        if (D2f) {
                            D2f.removeClass('mbsc-btn-a');
                        }
                        c6f = false;
                        if (!y6f) {
                            D2f = t2f(I6f.target).closest('.mbsc-btn-e', this);
                            if (D2f.length && !D2f.hasClass('mbsc-btn-d')) {
                                c6f = true;
                                p6f = setTimeout(function() {
                                    D2f.addClass('mbsc-btn-a');
                                }, 100);
                            }
                        }
                        F6f = true;
                        l6f = false;
                        q6f = false;
                        s2f.scrolled = y6f;
                        U6f = U2f(I6f, 'X');
                        X6f = U2f(I6f, 'Y');
                        M6f = O6f = U6f;
                        i6f = 0;
                        w6f = 0;
                        G2f = 0;
                        L6f = new Date();
                        g2f = +X2f(z6f, I2f) || 0;
                        if (y6f) {
                            C6f(g2f, o2f ? 0 : 1);
                        }
                        if (I6f.type === 'mousedown') {
                            t2f(document).on('mousemove', A6f).on('mouseup', E6f);
                        }
                    }
                }
                var D2f, p6f, a6f, i6f, w6f, G2f, m6f, K6f, t6f, M6f, B6f, e2f, c6f, O6f, W2f, f6f, R6f, F6f, y6f, q6f, d6f, b6f, l6f, v6f, P6f, j2f, h2f, g2f, L6f, U6f, X6f, Q6f, z6f, Z6f, S2f, I2f, s2f = this,
                    n2f, N6f = 0,
                    x6f = 1,
                    O2f = Y6f,
                    T6f = t2f(H6f);
                Q2f.Base.call(this, H6f, Y6f, true);
                s2f.scrolled = false;
                s2f.scroll = function(b4f, l4f, H4f, q4f) {
                    if (!M2f(b4f)) {
                        b4f = Math.ceil((t2f(b4f, H6f).length ? Math.round(z6f.offset()[m6f] - t2f(b4f, H6f).offset()[m6f]) : n2f) / j2f) * j2f;
                    } else {
                        b4f = Math.round(b4f / j2f) * j2f;
                    }
                    b4f = A2f(b4f, R6f, W2f);
                    N6f = Math.round(b4f / j2f);
                    g2f = n2f;
                    C6f(b4f, l4f, H4f, q4f);
                };
                s2f.refresh = function(K4f) {
                    var c4f;
                    a6f = O2f.contSize === m2f ? I2f ? T6f.height() : T6f.width() : O2f.contSize;
                    R6f = O2f.minScroll === m2f ? Math.min(0, I2f ? a6f - z6f.height() : a6f - z6f.width()) : O2f.minScroll;
                    W2f = O2f.maxScroll === m2f ? 0 : O2f.maxScroll;
                    h2f = null;
                    if (!I2f && O2f.rtl) {
                        c4f = W2f;
                        W2f = -R6f;
                        R6f = -c4f;
                    }
                    if (u2f(O2f.snap)) {
                        h2f = [];
                        z6f.find(O2f.snap).each(function() {
                            var w4f = I2f ? this.offsetTop : this.offsetLeft,
                                a4f = I2f ? this.offsetHeight : this.offsetWidth;
                            h2f.push({
                                breakpoint: w4f + a4f / 2,
                                snap1: -w4f,
                                snap2: a6f - w4f - a4f
                            });
                        });
                    }
                    j2f = M2f(O2f.snap) ? O2f.snap : 1;
                    f6f = O2f.snap ? O2f.maxSnapScroll : 0;
                    K6f = O2f.easing;
                    t6f = O2f.elastic ? M2f(O2f.snap) ? j2f : M2f(O2f.elastic) ? O2f.elastic : 0 : 0;
                    if (n2f === m2f) {
                        n2f = O2f.initialPos;
                        N6f = Math.round(n2f / j2f);
                    }
                    if (!K4f) {
                        s2f.scroll(O2f.snap ? h2f ? h2f[N6f]['snap' + x6f] : N6f * j2f : n2f);
                    }
                };
                s2f._processSettings = function() {
                    I2f = O2f.axis == 'Y';
                    m6f = I2f ? 'top' : 'left';
                    z6f = O2f.moveElement || T6f.children().eq(0);
                    Q6f = z6f[0].style;
                };
                s2f._init = function() {
                    s2f.refresh();
                    T6f.on('touchstart mousedown', o6f).on('touchmove', A6f).on('touchend touchcancel', E6f);
                    if (O2f.mousewheel) {
                        T6f.on('wheel mousewheel', J6f);
                    }
                    if (H6f.addEventListener) {
                        H6f.addEventListener('click', function(F4f) {
                            if (s2f.scrolled) {
                                s2f.scrolled = false;
                                F4f.stopPropagation();
                                F4f.preventDefault();
                            }
                        }, true);
                    }
                };
                s2f._destroy = function() {
                    clearInterval(P6f);
                    T6f.off('touchstart mousedown', o6f).off('touchmove', A6f).off('touchend touchcancel', E6f).off('wheel mousewheel', J6f);
                };
                O2f = s2f.settings;
                S2f = s2f.trigger;
                if (!V6f) {
                    s2f.init(Y6f);
                }
            };
            Q2f.ScrollView.prototype = {
                _class: 'scrollview',
                _defaults: {
                    speedUnit: 0.0022,
                    timeUnit: 3,
                    initialPos: 0,
                    axis: 'Y',
                    easing: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',
                    stopProp: true,
                    momentum: true,
                    mousewheel: true,
                    elastic: true
                }
            };
            Z2f.presetShort('scrollview', 'ScrollView', false);
        }());
        (function(X4f, m4f, P4f) {
            var C4f = R,
                i4f = C4f.$,
                d4f = i4f.extend,
                E4f = C4f.classes,
                M4f = C4f.platform,
                x4f = C4f.util,
                Z4f = x4f.jsPrefix,
                U4f = x4f.prefix,
                A4f = x4f.getCoord,
                p4f = x4f.testTouch,
                t4f = X4f.CSS,
                Q4f = t4f && t4f.supports && t4f.supports("(transform-style: preserve-3d)"),
                Y4f = !Q4f || M4f.name == 'wp' || M4f.name == 'android';
            C4f.presetShort('scroller', 'Scroller', false);
            E4f.Scroller = function(e4f, P7f, p7f) {
                function R7f(v9f, L9f, u9f, o9f, J9f) {
                    if (!o9f) {
                        S4f(u9f);
                    } else {
                        L4f._tempValue = v4f.formatValue(L4f._tempWheelArray, L4f);
                    }
                    if (!J9f) {
                        L4f._wheelArray = [];
                        for (var X9f = 0; X9f < o4f.length; X9f++) {
                            L4f._wheelArray[X9f] = k4f[X9f] && k4f[X9f].multiple ? Object.keys(L4f._tempSelected[X9f])[0] : o4f[X9f];
                        }
                        L4f._value = L4f._hasValue ? L4f._tempValue : null;
                        L4f._selected = d4f(true, {}, L4f._tempSelected);
                    }
                    if (v9f) {
                        if (L4f._isInput) {
                            z7f.val(L4f._hasValue ? L4f._tempValue : '');
                        }
                        V4f('onFill', {
                            valueText: L4f._hasValue ? L4f._tempValue : '',
                            change: L9f
                        });
                        if (L9f) {
                            L4f._preventChange = true;
                            z7f.trigger('change');
                        }
                    }
                }

                function w7f(t9f, Z9f, M9f, Q9f, m9f, p9f, Y9f) {
                    var U9f = g4f(t9f, M9f);
                    if (U9f !== P4f) {
                        o4f[Z9f] = U9f;
                        t9f._batch = t9f._array ? Math.floor(M9f / t9f._length) * t9f._length : 0;
                        setTimeout(function() {
                            S4f(Q9f, Z9f, m9f, true, p9f, Y9f);
                        }, 10);
                    }
                }

                function S4f(i9f, H9f, a9f, q9f, F9f, P9f) {
                    var c9f, K9f, w9f, b9f, l9f = L4f._isVisible;
                    n4f = true;
                    b9f = v4f.validate.call(e4f, {
                        values: o4f.slice(0),
                        index: H9f,
                        direction: a9f
                    }, L4f) || {};
                    n4f = false;
                    if (b9f.valid) {
                        L4f._tempWheelArray = o4f = b9f.valid.slice(0);
                    }
                    if (!P9f) {
                        i4f.each(k4f, function(C9f, x9f) {
                            if (l9f) {
                                x9f._$markup.find('.mbsc-sc-itm-inv').removeClass('mbsc-sc-itm-inv mbsc-btn-d');
                            }
                            x9f._disabled = {};
                            if (b9f.disabled && b9f.disabled[C9f]) {
                                i4f.each(b9f.disabled[C9f], function(A9f, E9f) {
                                    x9f._disabled[E9f] = true;
                                    if (l9f) {
                                        x9f._$markup.find('.mbsc-sc-itm[data-val="' + E9f + '"]').addClass('mbsc-sc-itm-inv mbsc-btn-d');
                                    }
                                });
                            }
                            o4f[C9f] = x9f.multiple ? o4f[C9f] : x7f(C9f, o4f[C9f], a9f);
                            if (l9f) {
                                if (!x9f.multiple || H9f === P4f) {
                                    x9f._$markup.find('.mbsc-sc-itm-sel').removeClass(I4f).removeAttr('aria-selected');
                                }
                                if (x9f.multiple) {
                                    if (H9f === P4f) {
                                        for (var d9f in L4f._tempSelected[C9f]) {
                                            x9f._$markup.find('.mbsc-sc-itm[data-val="' + d9f + '"]').addClass(I4f).attr('aria-selected', 'true');
                                        }
                                    }
                                } else {
                                    x9f._$markup.find('.mbsc-sc-itm[data-val="' + o4f[C9f] + '"]').addClass('mbsc-sc-itm-sel').attr('aria-selected', 'true');
                                }
                                K9f = a7f(x9f, o4f[C9f]);
                                c9f = K9f - x9f._index + x9f._batch;
                                if (Math.abs(c9f) > 2 * B4f + 1) {
                                    w9f = c9f + (2 * B4f + 1) * (c9f > 0 ? -1 : 1);
                                    x9f._offset += w9f;
                                    x9f._margin -= w9f * u4f;
                                    x9f._refresh();
                                }
                                x9f._index = K9f + x9f._batch;
                                x9f._scroller.scroll(-(K9f - x9f._offset + x9f._batch) * u4f, H9f === C9f || H9f === P4f ? i9f : D4f, F9f);
                            }
                        });
                    }
                    V4f('onValidated');
                    L4f._tempValue = v4f.formatValue(o4f, L4f);
                    if (l9f) {
                        L4f._header.html(M7f(L4f._tempValue));
                    }
                    if (L4f.live) {
                        L4f._hasValue = q9f || L4f._hasValue;
                        R7f(q9f, q9f, 0, true);
                        if (q9f) {
                            V4f('onSet', {
                                valueText: L4f._value
                            });
                        }
                    }
                    if (q9f) {
                        V4f('onChange', {
                            valueText: L4f._tempValue
                        });
                    }
                }

                function x7f(f9f, j8f, T9f, y9f) {
                    var W8f, g8f = k4f[f9f],
                        R9f = y9f || g8f._disabled,
                        S8f = a7f(g8f, j8f),
                        N9f = j8f,
                        z9f = j8f,
                        h8f = 0,
                        D8f = 0;
                    if (j8f === P4f) {
                        j8f = g4f(g8f, S8f);
                    }
                    if (R9f[j8f] === true) {
                        W8f = 0;
                        while (S8f - h8f >= g8f.min && R9f[N9f] && W8f < 100) {
                            W8f++;
                            h8f++;
                            N9f = g4f(g8f, S8f - h8f);
                        }
                        W8f = 0;
                        while (S8f + D8f < g8f.max && R9f[z9f] && W8f < 100) {
                            W8f++;
                            D8f++;
                            z9f = g4f(g8f, S8f + D8f);
                        }
                        if ((D8f < h8f && D8f && T9f !== 2 || !h8f || S8f - h8f < 0 || T9f == 1) && !R9f[z9f]) {
                            j8f = z9f;
                        } else {
                            j8f = N9f;
                        }
                    }
                    return j8f;
                }

                function Q7f(B8f, r8f, n8f) {
                    var G8f = Math.round(-n8f / u4f) + B8f._offset,
                        V8f = G8f - B8f._current,
                        O8f = B8f._first,
                        I8f = B8f._last,
                        s8f = O8f + B4f - O4f + 1,
                        e8f = I8f - B4f + O4f;
                    if (V8f) {
                        B8f._first += V8f;
                        B8f._last += V8f;
                        B8f._current = G8f;
                        if (V8f > 0) {
                            B8f._$scroller.append(s4f(B8f, r8f, Math.max(I8f + 1, O8f + V8f), I8f + V8f));
                            i4f('.mbsc-sc-itm', B8f._$scroller).slice(0, Math.min(V8f, I8f - O8f + 1)).remove();
                            if (J4f) {
                                B8f._$3d.append(s4f(B8f, r8f, Math.max(e8f + 1, s8f + V8f), e8f + V8f, true));
                                i4f('.mbsc-sc-itm', B8f._$3d).slice(0, Math.min(V8f, e8f - s8f + 1)).attr('class', 'mbsc-sc-itm-del');
                            }
                        } else if (V8f < 0) {
                            B8f._$scroller.prepend(s4f(B8f, r8f, O8f + V8f, Math.min(O8f - 1, I8f + V8f)));
                            i4f('.mbsc-sc-itm', B8f._$scroller).slice(Math.max(V8f, O8f - I8f - 1)).remove();
                            if (J4f) {
                                B8f._$3d.prepend(s4f(B8f, r8f, s8f + V8f, Math.min(s8f - 1, e8f + V8f), true));
                                i4f('.mbsc-sc-itm', B8f._$3d).slice(Math.max(V8f, s8f - e8f - 1)).attr('class', 'mbsc-sc-itm-del');
                            }
                        }
                        B8f._margin += V8f * u4f;
                        B8f._$scroller.css('margin-top', B8f._margin + 'px');
                    }
                }

                function M7f(k8f) {
                    var J8f = v4f.headerText;
                    return J8f ? typeof J8f === 'function' ? J8f.call(e4f, k8f) : J8f.replace(/\{value\}/i, k8f) : '';
                }

                function s4f(t8f, m8f, o8f, u8f, p8f) {
                    var A8f, v8f, d8f, E8f, Y8f, M8f, L8f, Q8f, Z8f = '',
                        U8f = L4f._tempSelected[m8f],
                        X8f = t8f._disabled || {};
                    for (A8f = o8f; A8f <= u8f; A8f++) {
                        d8f = t7f(t8f, A8f);
                        Y8f = m7f(d8f);
                        E8f = T7f(d8f);
                        v8f = d8f && d8f.cssClass !== P4f ? d8f.cssClass : '';
                        M8f = d8f && d8f.label !== P4f ? d8f.label : '';
                        L8f = d8f && d8f.invalid;
                        Q8f = E8f !== P4f && E8f == o4f[m8f] && !t8f.multiple;
                        Z8f += '<div role="option" aria-selected="' + (U8f[E8f] ? true : false) + '" class="mbsc-sc-itm ' + (p8f ? 'mbsc-sc-itm-3d ' : '') + v8f + ' ' + (Q8f ? 'mbsc-sc-itm-sel ' : '') + (U8f[E8f] ? I4f : '') + (E8f === P4f ? ' mbsc-sc-itm-ph' : ' mbsc-btn-e') + (L8f ? ' mbsc-sc-itm-inv-h mbsc-btn-d' : '') + (X8f[E8f] ? ' mbsc-sc-itm-inv mbsc-btn-d' : '') + '" data-index="' + A8f + '" data-val="' + E8f + '"' + (M8f ? ' aria-label="' + M8f + '"' : '') + (Q8f ? ' aria-selected="true"' : '') + ' style="height:' + u4f + 'px;line-height:' + u4f + 'px;' + (p8f ? U4f + 'transform:rotateX(' + (t8f._offset - A8f) * y7f % 360 + 'deg) translateZ(' + u4f * v4f.rows / 2 + 'px);' : '') + '">' + (G4f > 1 ? '<div class="mbsc-sc-itm-ml" style="line-height:' + Math.round(u4f / G4f) + 'px;font-size:' + Math.round(u4f / G4f * 0.8) + 'px;">' : '') + Y8f + (G4f > 1 ? '</div>' : '') + '</div>';
                    }
                    return Z8f;
                }

                function K7f(c8f, K8f, a8f) {
                    var w8f = c8f._index - c8f._batch;
                    c8f.data = c8f.data || [];
                    c8f.key = c8f.key !== P4f ? c8f.key : K8f;
                    c8f.label = c8f.label !== P4f ? c8f.label : K8f;
                    c8f._map = {};
                    c8f._array = i4f.isArray(c8f.data);
                    if (c8f._array) {
                        c8f._length = c8f.data.length;
                        i4f.each(c8f.data, function(F8f, i8f) {
                            c8f._map[T7f(i8f)] = F8f;
                        });
                    }
                    c8f.circular = v4f.circular === P4f ? c8f.circular === P4f ? c8f._array && c8f._length > v4f.rows : c8f.circular : i4f.isArray(v4f.circular) ? v4f.circular[K8f] : v4f.circular;
                    c8f.min = c8f._array ? c8f.circular ? -Infinity : 0 : c8f.min === P4f ? -Infinity : c8f.min;
                    c8f.max = c8f._array ? c8f.circular ? Infinity : c8f._length - 1 : c8f.max === P4f ? Infinity : c8f.max;
                    c8f._nr = K8f;
                    c8f._index = a7f(c8f, o4f[K8f]);
                    c8f._disabled = {};
                    c8f._batch = 0;
                    c8f._current = c8f._index;
                    c8f._first = c8f._index - B4f;
                    c8f._last = c8f._index + B4f;
                    c8f._offset = c8f._first;
                    if (a8f) {
                        c8f._offset -= c8f._margin / u4f + (c8f._index - w8f);
                        c8f._margin += (c8f._index - w8f) * u4f;
                    } else {
                        c8f._margin = 0;
                    }
                    c8f._refresh = function(C8f) {
                        var P8f = -(c8f.min - c8f._offset + (c8f.multiple && !J4f ? Math.floor(v4f.rows / 2) : 0)) * u4f,
                            x8f = Math.min(P8f, -(c8f.max - c8f._offset - (c8f.multiple && !J4f ? Math.floor(v4f.rows / 2) : 0)) * u4f);
                        d4f(c8f._scroller.settings, {
                            minScroll: x8f,
                            maxScroll: P8f
                        });
                        c8f._scroller.refresh(C8f);
                    };
                    b7f[c8f.key] = c8f;
                    return c8f;
                }

                function F7f(q8f) {
                    return i4f.isArray(v4f.readonly) ? v4f.readonly[q8f] : v4f.readonly;
                }

                function A7f(l8f, H8f) {
                    var b8f = k4f[l8f];
                    w7f(b8f, l8f, b8f._current + H8f, D4f, H8f == 1 ? 1 : 2);
                }

                function H7f(y8f) {
                    clearInterval(f7f);
                    N7f = y8f;
                    j4f = false;
                    if (h4f) {
                        h4f.removeClass('mbsc-sc-btn-a');
                    }
                }

                function d7f(T8f, f8f) {
                    if (!N7f) {
                        A7f(T8f, f8f);
                    }
                    if (j4f && R.CsDrb) {
                        clearInterval(f7f);
                        f7f = setInterval(function() {
                            A7f(T8f, f8f);
                        }, v4f.delay);
                    }
                }

                function g4f(z8f, N8f) {
                    return T7f(t7f(z8f, N8f));
                }

                function m7f(W7f) {
                    var R8f = i4f.isPlainObject(W7f) ? W7f.display : W7f;
                    return R8f === P4f ? '' : R8f;
                }

                function T7f(D7f) {
                    return i4f.isPlainObject(D7f) ? D7f.value !== P4f ? D7f.value : D7f.display : D7f;
                }

                function t7f(g7f, h7f) {
                    var S7f = g7f.data;
                    if (h7f >= g7f.min && h7f <= g7f.max) {
                        return g7f._array ? g7f.circular ? i4f(S7f).get(h7f % g7f._length) : S7f[h7f] : i4f.isFunction(S7f) ? S7f(h7f, L4f) : '';
                    }
                }

                function a7f(n7f, j7f) {
                    return (n7f._array ? n7f._map[j7f] : n7f.getIndex(j7f, L4f)) || 0;
                }

                function i7f(I7f, e7f) {
                    var V7f = k4f[I7f],
                        r7f = e7f.attr('data-index'),
                        O7f = g4f(V7f, r7f),
                        s7f = L4f._tempSelected[I7f],
                        G7f = x4f.isNumeric(V7f.multiple) ? V7f.multiple : Infinity;
                    if (V4f('onItemTap', {
                            target: e7f[0],
                            index: I7f,
                            value: O7f,
                            selected: e7f.hasClass('mbsc-sc-itm-sel')
                        }) !== false) {
                        if (V7f.multiple && !V7f._disabled[O7f]) {
                            if (s7f[O7f] !== P4f) {
                                e7f.removeClass(I4f).removeAttr('aria-selected');
                                delete s7f[O7f];
                            } else {
                                if (G7f == 1) {
                                    L4f._tempSelected[I7f] = s7f = {};
                                    V7f._$markup.find('.mbsc-sc-itm-sel').removeClass(I4f).removeAttr('aria-selected');
                                }
                                if (x4f.objectToArray(s7f).length < G7f) {
                                    e7f.addClass(I4f).attr('aria-selected', 'true');
                                    s7f[O7f] = O7f;
                                }
                            }
                        }
                        w7f(V7f, I7f, r7f, D4f, true, true, V7f.multiple);
                        if (L4f.live && !V7f.multiple && (v4f.setOnTap === true || v4f.setOnTap[I7f])) {
                            setTimeout(function() {
                                L4f.select();
                            }, 200);
                        }
                    }
                }

                function Y7f() {
                    H7f();
                }

                function Z7f(o7f) {
                    var J7f = i4f(this).attr('data-index'),
                        k7f, B7f;
                    if (o7f.keyCode == 38) {
                        k7f = true;
                        B7f = -1;
                    } else if (o7f.keyCode == 40) {
                        k7f = true;
                        B7f = 1;
                    } else if (o7f.keyCode == 32) {
                        k7f = true;
                        i7f(J7f, k4f[J7f]._$markup.find('.mbsc-sc-itm[data-val="' + o4f[J7f] + '"]'));
                    }
                    if (k7f) {
                        o7f.stopPropagation();
                        o7f.preventDefault();
                        if (B7f && !j4f) {
                            j4f = true;
                            N7f = false;
                            d7f(J7f, B7f);
                        }
                    }
                }

                function c7f(u7f) {
                    H7f();
                    u7f.preventDefault();
                    if (u7f.type === 'mouseup') {
                        i4f(m4f).off('mousemove', q7f).off('mouseup', c7f);
                    }
                }

                function q7f(v7f) {
                    if (Math.abs(C7f - A4f(v7f, 'X')) > 7 || Math.abs(E7f - A4f(v7f, 'Y')) > 7) {
                        H7f(true);
                    }
                }

                function U7f(X7f) {
                    var L7f = +i4f(this).attr('data-index');
                    X7f.stopPropagation();
                    if (X7f.type === 'mousedown') {
                        X7f.preventDefault();
                    }
                    if (p4f(X7f, this) && !F7f(L7f)) {
                        h4f = i4f(this).addClass('mbsc-sc-btn-a');
                        C7f = A4f(X7f, 'X');
                        E7f = A4f(X7f, 'Y');
                        j4f = true;
                        N7f = false;
                        setTimeout(function() {
                            d7f(L7f, h4f.attr('data-dir') == 'inc' ? 1 : -1);
                        }, 100);
                        if (X7f.type === 'mousedown') {
                            i4f(m4f).on('mousemove', q7f).on('mouseup', c7f);
                        }
                    }
                }
                var l7f, h4f, O4f, B4f = 40,
                    D4f = 1000,
                    y7f, J4f, I4f, r4f, f7f, j4f, N7f, C7f, E7f, o4f, u4f, W4f, n4f, v4f, V4f, G4f, k4f, b7f, L4f = this,
                    z7f = i4f(e4f);
                E4f.Frame.call(this, e4f, P7f, true);
                L4f.setVal = L4f._setVal = function(k9f, B9f, V9f, O9f, I9f) {
                    L4f._hasValue = k9f !== null && k9f !== P4f;
                    L4f._tempWheelArray = o4f = i4f.isArray(k9f) ? k9f.slice(0) : v4f.parseValue.call(e4f, k9f, L4f) || [];
                    R7f(B9f, V9f === P4f ? B9f : V9f, I9f, false, O9f);
                };
                L4f.getVal = L4f._getVal = function(e9f) {
                    var s9f = L4f._hasValue || e9f ? L4f[e9f ? '_tempValue' : '_value'] : null;
                    return x4f.isNumeric(s9f) ? +s9f : s9f;
                };
                L4f.setArrayVal = L4f.setVal;
                L4f.getArrayVal = function(r9f) {
                    return r9f ? L4f._tempWheelArray : L4f._wheelArray;
                };
                L4f.changeWheel = function(j9f, g9f, h9f) {
                    var n9f, G9f;
                    i4f.each(j9f, function(S9f, D9f) {
                        G9f = b7f[S9f];
                        n9f = G9f._nr;
                        if (G9f) {
                            d4f(G9f, D9f);
                            K7f(G9f, n9f, true);
                            if (L4f._isVisible) {
                                if (J4f) {
                                    G9f._$3d.html(s4f(G9f, n9f, G9f._first + B4f - O4f + 1, G9f._last - B4f + O4f, true));
                                }
                                G9f._$scroller.html(s4f(G9f, n9f, G9f._first, G9f._last)).css('margin-top', G9f._margin + 'px');
                                G9f._refresh(n4f);
                            }
                        }
                    });
                    if (L4f._isVisible && !L4f._isLiquid && !n4f) {
                        L4f.position();
                    }
                    if (!n4f) {
                        S4f(g9f, P4f, P4f, h9f);
                    }
                };
                L4f.getValidValue = x7f;
                L4f._generateContent = function() {
                    var T3f, z3f = 0,
                        R3f = '',
                        N3f = J4f ? U4f + 'transform: translateZ(' + (u4f * v4f.rows / 2 + 3) + 'px);' : '',
                        f3f = '<div class="mbsc-sc-whl-l" style="' + N3f + 'height:' + u4f + 'px;margin-top:-' + (u4f / 2 + (v4f.selectedLineBorder || 0)) + 'px;"></div>',
                        W9f = 0;
                    i4f.each(v4f.wheels, function(b3f, y3f) {
                        R3f += '<div class="mbsc-w-p mbsc-sc-whl-gr-c' + (v4f.showLabel ? ' mbsc-sc-lbl-v' : '') + '">' + f3f + '<div class="mbsc-sc-whl-gr' + (J4f ? ' mbsc-sc-whl-gr-3d' : '') + (r4f ? ' mbsc-sc-cp' : '') + (v4f.width || v4f.maxWidth ? '"' : '" style="max-width:' + v4f.maxPopupWidth + 'px;"') + '>';
                        i4f.each(y3f, function(H3f, l3f) {
                            L4f._tempSelected[W9f] = d4f({}, L4f._selected[W9f]);
                            k4f[W9f] = K7f(l3f, W9f);
                            z3f += v4f.maxWidth ? v4f.maxWidth[W9f] || v4f.maxWidth : v4f.width ? v4f.width[W9f] || v4f.width : 0;
                            T3f = l3f.label !== P4f ? l3f.label : H3f;
                            R3f += '<div class="mbsc-sc-whl-w ' + (l3f.cssClass || '') + (l3f.multiple ? ' mbsc-sc-whl-multi' : '') + '" style="' + (v4f.width ? 'width:' + (v4f.width[W9f] || v4f.width) + 'px;' : (v4f.minWidth ? 'min-width:' + (v4f.minWidth[W9f] || v4f.minWidth) + 'px;' : '') + (v4f.maxWidth ? 'max-width:' + (v4f.maxWidth[W9f] || v4f.maxWidth) + 'px;' : '')) + '">' + '<div class="mbsc-sc-whl-o" style="' + N3f + '"></div>' + f3f + '<div tabindex="0" aria-live="off" aria-label="' + T3f + '"' + (l3f.multiple ? ' aria-multiselectable="true"' : '') + ' role="listbox" data-index="' + W9f + '" class="mbsc-sc-whl"' + ' style="' + 'height:' + v4f.rows * u4f * (J4f ? 1.1 : 1) + 'px;">' + (r4f ? '<div data-index="' + W9f + '" data-dir="inc" class="mbsc-sc-btn mbsc-sc-btn-plus ' + (v4f.btnPlusClass || '') + '" style="height:' + u4f + 'px;line-height:' + u4f + 'px;"></div>' + '<div data-index="' + W9f + '" data-dir="dec" class="mbsc-sc-btn mbsc-sc-btn-minus ' + (v4f.btnMinusClass || '') + '" style="height:' + u4f + 'px;line-height:' + u4f + 'px;"></div>' : '') + '<div class="mbsc-sc-lbl">' + T3f + '</div>' + '<div class="mbsc-sc-whl-c"' + ' style="height:' + W4f + 'px;margin-top:-' + (W4f / 2 + 1) + 'px;' + N3f + '">' + '<div class="mbsc-sc-whl-sc" style="top:' + (W4f - u4f) / 2 + 'px;">';
                            R3f += s4f(l3f, W9f, l3f._first, l3f._last) + '</div></div>';
                            if (J4f) {
                                R3f += '<div class="mbsc-sc-whl-3d" style="height:' + u4f + 'px;margin-top:-' + u4f / 2 + 'px;">';
                                R3f += s4f(l3f, W9f, l3f._first + B4f - O4f + 1, l3f._last - B4f + O4f, true);
                                R3f += '</div>';
                            }
                            R3f += '</div></div>';
                            W9f++;
                        });
                        R3f += '</div></div>';
                    });
                    if (z3f) {
                        v4f.maxPopupWidth = z3f;
                    }
                    return R3f;
                };
                L4f._attachEvents = function(q3f) {
                    i4f('.mbsc-sc-btn', q3f).on('touchstart mousedown', U7f).on('touchmove', q7f).on('touchend touchcancel', c7f);
                    i4f('.mbsc-sc-whl', q3f).on('keydown', Z7f).on('keyup', Y7f);
                };
                L4f._detachEvents = function() {
                    for (var c3f = 0; c3f < k4f.length; c3f++) {
                        k4f[c3f]._scroller.destroy();
                    }
                };
                L4f._markupReady = function(K3f) {
                    l7f = K3f;
                    i4f('.mbsc-sc-whl', l7f).each(function(a3f) {
                        var P3f, F3f = i4f(this),
                            w3f = k4f[a3f],
                            i3f = -(w3f.min - w3f._offset + (w3f.multiple && !J4f ? Math.floor(v4f.rows / 2) : 0)) * u4f,
                            x3f = Math.min(i3f, -(w3f.max - w3f._offset - (w3f.multiple && !J4f ? Math.floor(v4f.rows / 2) : 0)) * u4f);
                        w3f._$markup = F3f;
                        w3f._$scroller = i4f('.mbsc-sc-whl-sc', this);
                        w3f._$3d = i4f('.mbsc-sc-whl-3d', this);
                        w3f._scroller = new C4f.classes.ScrollView(this, {
                            mousewheel: v4f.mousewheel,
                            moveElement: w3f._$scroller,
                            initialPos: (w3f._first - w3f._index) * u4f,
                            contSize: 0,
                            snap: u4f,
                            minScroll: x3f,
                            maxScroll: i3f,
                            maxSnapScroll: B4f,
                            prevDef: true,
                            stopProp: true,
                            timeUnit: 3,
                            easing: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',
                            sync: function(d3f, C3f, E3f) {
                                if (J4f) {
                                    w3f._$3d[0].style[Z4f + 'Transition'] = C3f ? U4f + 'transform ' + Math.round(C3f) + 'ms ' + E3f : '';
                                    w3f._$3d[0].style[Z4f + 'Transform'] = 'rotateX(' + -d3f / u4f * y7f + 'deg)';
                                }
                            },
                            onStart: function(t3f, A3f) {
                                A3f.settings.readonly = F7f(a3f);
                            },
                            onGestureStart: function() {
                                F3f.addClass('mbsc-sc-whl-a mbsc-sc-whl-anim');
                                V4f('onWheelGestureStart', {
                                    index: a3f
                                });
                            },
                            onGestureEnd: function(U3f) {
                                var Z3f = U3f.direction == 90 ? 1 : 2,
                                    M3f = U3f.duration,
                                    Q3f = U3f.destinationY;
                                P3f = Math.round(-Q3f / u4f) + w3f._offset;
                                w7f(w3f, a3f, P3f, M3f, Z3f);
                            },
                            onAnimationStart: function() {
                                F3f.addClass('mbsc-sc-whl-anim');
                            },
                            onAnimationEnd: function() {
                                F3f.removeClass('mbsc-sc-whl-a mbsc-sc-whl-anim');
                                V4f('onWheelAnimationEnd', {
                                    index: a3f
                                });
                                w3f._$3d.find('.mbsc-sc-itm-del').remove();
                            },
                            onMove: function(m3f) {
                                Q7f(w3f, a3f, m3f.posY);
                            },
                            onBtnTap: function(p3f) {
                                i7f(a3f, i4f(p3f.target));
                            }
                        });
                    });
                    S4f();
                };
                L4f._fillValue = function() {
                    L4f._hasValue = true;
                    R7f(true, true, 0, true);
                };
                L4f._clearValue = function() {
                    i4f('.mbsc-sc-whl-multi .mbsc-sc-itm-sel', l7f).removeClass(I4f).removeAttr('aria-selected');
                };
                L4f._readValue = function() {
                    var X3f = z7f.val() || '',
                        Y3f = 0;
                    if (X3f !== '') {
                        L4f._hasValue = true;
                    }
                    L4f._tempWheelArray = o4f = L4f._hasValue && L4f._wheelArray ? L4f._wheelArray.slice(0) : v4f.parseValue.call(e4f, X3f, L4f) || [];
                    L4f._tempSelected = d4f(true, {}, L4f._selected);
                    i4f.each(v4f.wheels, function(v3f, L3f) {
                        i4f.each(L3f, function(o3f, u3f) {
                            k4f[Y3f] = K7f(u3f, Y3f);
                            Y3f++;
                        });
                    });
                    R7f(false, false, 0, true);
                    V4f('onRead');
                };
                L4f.__processSettings = function() {
                    v4f = L4f.settings;
                    V4f = L4f.trigger;
                    G4f = v4f.multiline;
                    I4f = 'mbsc-sc-itm-sel mbsc-ic mbsc-ic-' + v4f.checkIcon;
                    k4f = [];
                    b7f = {};
                };
                L4f.__init = function() {
                    r4f = v4f.showScrollArrows;
                    J4f = v4f.scroll3d && !Y4f && !r4f;
                    u4f = v4f.height;
                    W4f = J4f ? Math.round((u4f - (u4f * v4f.rows / 2 + 3) * 0.03) / 2) * 2 : u4f;
                    O4f = Math.round(v4f.rows * 1.8);
                    y7f = 360 / (O4f * 2);
                    if (r4f) {
                        v4f.rows = Math.max(3, v4f.rows);
                    }
                    v4f.cssClass = (v4f.cssClass || '') + ' mbsc-sc';
                };
                L4f._getItemValue = T7f;
                L4f._tempSelected = {};
                L4f._selected = {};
                if (!p7f) {
                    L4f.init(P7f);
                }
            };
            E4f.Scroller.prototype = {
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _hasPreset: true,
                _class: 'scroller',
                _defaults: d4f({}, E4f.Frame.prototype._defaults, {
                    minWidth: 80,
                    height: 40,
                    rows: 3,
                    multiline: 1,
                    delay: 300,
                    readonly: false,
                    showLabel: true,
                    setOnTap: false,
                    wheels: [],
                    preset: '',
                    speedUnit: 0.0012,
                    timeUnit: 0.08,
                    checkIcon: 'checkmark',
                    validate: function() {},
                    formatValue: function(J3f) {
                        return J3f.join(' ');
                    },
                    parseValue: function(B3f, k3f) {
                        var V3f = [],
                            O3f = [],
                            I3f = 0,
                            s3f, e3f;
                        if (B3f !== null && B3f !== P4f) {
                            V3f = (B3f + '').split(' ');
                        }
                        i4f.each(k3f.settings.wheels, function(G3f, r3f) {
                            i4f.each(r3f, function(j3f, n3f) {
                                e3f = n3f.data;
                                s3f = k3f._getItemValue(e3f[0]);
                                i4f.each(e3f, function(h3f, g3f) {
                                    if (V3f[I3f] == k3f._getItemValue(g3f)) {
                                        s3f = k3f._getItemValue(g3f);
                                        return false;
                                    }
                                });
                                O3f.push(s3f);
                                I3f++;
                            });
                        });
                        return O3f;
                    }
                })
            };
        }(window, document));
       (function(S3f) {
        var W3f = R,
            D3f = W3f.$,
            R0f = T.adjustedDate,
            z0f = {
                separator: ' ',
                dateFormat: 'mm/dd/yy',
                dateDisplay: 'MMddyy',
                timeFormat: 'h:ii A',
                dayText: 'Day',
                monthText: 'Month',
                yearText: 'Year',
                hourText: 'Hours',
                minuteText: 'Minutes',
                ampmText: '&nbsp;',
                secText: 'Seconds',
                nowText: 'Now',
                todayText: 'Today'
            },
            N0f = function(f0f) {
                function j0f(T21, f21, r11, x21, F21, l21, C21, P21) {
                    var a21, q21, h11, K21, c21, H21, j11, b21, y21, I11, G11, e11, s11, D11, z21, w21, N21, S11, W11, R21, i21 = {},
                        g11 = T0f.getDate(x21, F21, l21),
                        n11 = ['a', 'h', 'i', 's'];
                    if (T21) {
                        for (j11 = 0; j11 < T21.length; j11++) {
                            G11 = T21[j11];
                            if (G11.start) {
                                G11.apply = false;
                                h11 = G11.d;
                                N21 = h11 + '';
                                S11 = N21.split('/');
                                if (h11 && (h11.getTime && x21 == T0f.getYear(h11) && F21 == T0f.getMonth(h11) && l21 == T0f.getDay(h11) || !N21.match(/w/i) && (S11[1] && l21 == S11[1] && F21 == S11[0] - 1 || !S11[1] && l21 == S11[0]) || N21.match(/w/i) && g11.getDay() == +N21.replace('w', ''))) {
                                    G11.apply = true;
                                    i21[g11] = true;
                                }
                            }
                        }
                        for (j11 = 0; j11 < T21.length; j11++) {
                            G11 = T21[j11];
                            a21 = 0;
                            w21 = 0;
                            b21 = w0f[r11];
                            y21 = q0f[r11];
                            D11 = true;
                            z21 = true;
                            q21 = false;
                            if (G11.start && (G11.apply || !G11.d && !i21[g11])) {
                                e11 = G11.start.split(':');
                                s11 = G11.end.split(':');
                                for (I11 = 0; I11 < 3; I11++) {
                                    if (e11[I11] === S3f) {
                                        e11[I11] = 0;
                                    }
                                    if (s11[I11] === S3f) {
                                        s11[I11] = 59;
                                    }
                                    e11[I11] = +e11[I11];
                                    s11[I11] = +s11[I11];
                                }
                                if (r11 == 'tt') {
                                    b21 = H0f(Math.round((new Date(g11).setHours(e11[0], e11[1], e11[2]) - new Date(g11).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                                    y21 = H0f(Math.round((new Date(g11).setHours(s11[0], s11[1], s11[2]) - new Date(g11).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                                } else {
                                    e11.unshift(e11[0] > 11 ? 1 : 0);
                                    s11.unshift(s11[0] > 11 ? 1 : 0);
                                    if (P0f) {
                                        if (e11[1] >= 12) {
                                            e11[1] = e11[1] - 12;
                                        }
                                        if (s11[1] >= 12) {
                                            s11[1] = s11[1] - 12;
                                        }
                                    }
                                    for (I11 = 0; I11 < f21; I11++) {
                                        if (F0f[I11] !== S3f) {
                                            W11 = H0f(e11[I11], c0f[n11[I11]], w0f[n11[I11]], q0f[n11[I11]]);
                                            R21 = H0f(s11[I11], c0f[n11[I11]], w0f[n11[I11]], q0f[n11[I11]]);
                                            K21 = 0;
                                            c21 = 0;
                                            H21 = 0;
                                            if (P0f && I11 == 1) {
                                                K21 = e11[0] ? 12 : 0;
                                                c21 = s11[0] ? 12 : 0;
                                                H21 = F0f[0] ? 12 : 0;
                                            }
                                            if (!D11) {
                                                W11 = 0;
                                            }
                                            if (!z21) {
                                                R21 = q0f[n11[I11]];
                                            }
                                            if ((D11 || z21) && (W11 + K21 < F0f[I11] + H21 && F0f[I11] + H21 < R21 + c21)) {
                                                q21 = true;
                                            }
                                            if (F0f[I11] != W11) {
                                                D11 = false;
                                            }
                                            if (F0f[I11] != R21) {
                                                z21 = false;
                                            }
                                        }
                                    }
                                    if (!P21) {
                                        for (I11 = f21 + 1; I11 < 4; I11++) {
                                            if (e11[I11] > 0) {
                                                a21 = c0f[r11];
                                            }
                                            if (s11[I11] < q0f[n11[I11]]) {
                                                w21 = c0f[r11];
                                            }
                                        }
                                    }
                                    if (!q21) {
                                        W11 = H0f(e11[f21], c0f[r11], w0f[r11], q0f[r11]) + a21;
                                        R21 = H0f(s11[f21], c0f[r11], w0f[r11], q0f[r11]) - w21;
                                        if (D11) {
                                            b21 = W11;
                                        }
                                        if (z21) {
                                            y21 = R21;
                                        }
                                    }
                                }
                                if (D11 || z21 || q21) {
                                    for (I11 = b21; I11 <= y21; I11 += c0f[r11]) {
                                        C21[I11] = !P21;
                                    }
                                }
                            }
                        }
                    }
                }

                function g0f(J11, O11, k11, V11, B11, u11, o11) {
                    var X11, v11, L11, Y11;
                    if (J11) {
                        for (v11 = 0; v11 < J11.length; v11++) {
                            X11 = J11[v11];
                            Y11 = X11 + '';
                            if (!X11.start) {
                                if (X11.getTime) {
                                    if (T0f.getYear(X11) == O11 && T0f.getMonth(X11) == k11) {
                                        u11[T0f.getDay(X11)] = o11;
                                    }
                                } else if (!Y11.match(/w/i)) {
                                    Y11 = Y11.split('/');
                                    if (Y11[1]) {
                                        if (Y11[0] - 1 == k11) {
                                            u11[Y11[1]] = o11;
                                        }
                                    } else {
                                        u11[Y11[0]] = o11;
                                    }
                                } else {
                                    Y11 = +Y11.replace('w', '');
                                    for (L11 = Y11 - V11; L11 < B11; L11 += 7) {
                                        if (L11 >= 0) {
                                            u11[L11 + 1] = o11;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                function s0f(M11, p11) {
                    var Q11, m11, Z11;
                    if (p11) {
                        for (m11 = 0; m11 < p11.length; m11++) {
                            Q11 = p11[m11];
                            Z11 = Q11 + '';
                            if (!Q11.start) {
                                if (Q11.getTime) {
                                    if (M11.getFullYear() == Q11.getFullYear() && M11.getMonth() == Q11.getMonth() && M11.getDate() == Q11.getDate()) {
                                        return true;
                                    }
                                } else if (!Z11.match(/w/i)) {
                                    Z11 = Z11.split('/');
                                    if (Z11[1]) {
                                        if (Z11[0] - 1 == M11.getMonth() && Z11[1] == M11.getDate()) {
                                            return true;
                                        }
                                    } else if (Z11[0] == M11.getDate()) {
                                        return true;
                                    }
                                } else {
                                    Z11 = +Z11.replace('w', '');
                                    if (Z11 == M11.getDay()) {
                                        return true;
                                    }
                                }
                            }
                        }
                    }
                    return false;
                }

                function x0f(t11, U11) {
                    if (!U11 && t11 < b0f) {
                        return false;
                    }
                    if (!U11 && t11 > a0f) {
                        return false;
                    }
                    if (s0f(t11, L0f)) {
                        return true;
                    }
                    if (s0f(t11, X0f)) {
                        return false;
                    }
                    return true;
                }

                function F51(F11, C11) {
                    var w11, a11, P11 = false,
                        i11 = false,
                        A11 = 0,
                        E11 = 0,
                        d11 = b0f ? C0f(E0f(b0f)) : -Infinity,
                        x11 = a0f ? C0f(E0f(a0f)) : Infinity;
                    if (x0f(F11)) {
                        return F11;
                    }
                    if (F11 < d11) {
                        F11 = d11;
                    }
                    if (F11 > x11) {
                        F11 = x11;
                    }
                    w11 = F11;
                    a11 = F11;
                    if (C11 !== 2) {
                        P11 = x0f(w11);
                        while (!P11 && w11 < x11) {
                            w11 = new Date(w11.getTime() + 1000 * 60 * 60 * 24);
                            P11 = x0f(w11);
                            A11++;
                        }
                    }
                    if (C11 !== 1) {
                        i11 = x0f(a11);
                        while (!i11 && a11 > d11) {
                            a11 = new Date(a11.getTime() - 1000 * 60 * 60 * 24);
                            i11 = x0f(a11);
                            E11++;
                        }
                    }
                    if (C11 === 1 && P11) {
                        return w11;
                    }
                    if (C11 === 2 && i11) {
                        return a11;
                    }
                    return E11 <= A11 && i11 ? a11 : w11;
                }

                function w51(q11) {
                    var l11, c11, K11, H11 = {};
                    if (q11.is('input')) {
                        switch (q11.attr('type')) {
                            case 'date':
                                l11 = 'yy-mm-dd';
                                break;
                            case 'datetime':
                                l11 = 'yy-mm-ddTHH:ii:ssZ';
                                break;
                            case 'datetime-local':
                                l11 = 'yy-mm-ddTHH:ii:ss';
                                break;
                            case 'month':
                                l11 = 'yy-mm';
                                H11.dateOrder = 'mmyy';
                                break;
                            case 'time':
                                l11 = 'HH:ii:ss';
                                break;
                        }
                        H11.format = l11;
                        c11 = q11.attr('min');
                        K11 = q11.attr('max');
                        if (c11) {
                            H11.min = T.parseDate(l11, c11);
                        }
                        if (K11) {
                            H11.max = T.parseDate(l11, K11);
                        }
                    }
                    return H11;
                }

                function a51(y11, b11) {
                    return b11 ? Math.floor(new Date(y11) / 86400000) : y11.getMonth() + 12 * (y11.getFullYear() - 1970);
                }

                function E0f(R11, f11) {
                    var z11, W51, N11 = ['y', 'm', 'd', 'a', 'h', 'i', 's', 'u', 'dd', 'tt'],
                        T11 = [];
                    if (R11 === null || R11 === S3f) {
                        return R11;
                    }
                    for (z11 = 0; z11 < N11.length; z11++) {
                        W51 = N11[z11];
                        if (y0f[W51] !== S3f) {
                            T11[y0f[W51]] = l0f[W51](R11);
                        }
                        if (f11) {
                            A0f[W51] = l0f[W51](R11);
                        }
                    }
                    return T11;
                }

                function C0f(n51) {
                    var G51, j51 = new Date(new Date().setHours(0, 0, 0, 0));
                    if (n51 === null) {
                        return n51;
                    }
                    if (y0f.dd !== S3f) {
                        G51 = n51[y0f.dd].split('-');
                        G51 = new Date(G51[0], G51[1] - 1, G51[2]);
                    }
                    if (y0f.tt !== S3f) {
                        G51 = G51 || j51;
                        G51 = new Date(G51.getTime() + n51[y0f.tt] % 86400 * 1000);
                    }
                    var g51 = K0f(n51, 'y', G51, j51),
                        h51 = K0f(n51, 'm', G51, j51),
                        D51 = Math.min(K0f(n51, 'd', G51, j51), T0f.getMaxDayOfMonth(g51, h51)),
                        S51 = K0f(n51, 'h', G51, j51);
                    return T0f.getDate(g51, h51, D51, P0f && K0f(n51, 'a', G51, j51) ? S51 + 12 : S51, K0f(n51, 'i', G51, j51), K0f(n51, 's', G51, j51), K0f(n51, 'u', G51, j51));
                }

                function K0f(e51, O51, s51, r51) {
                    var I51;
                    if (y0f[O51] !== S3f) {
                        I51 = +e51[y0f[O51]];
                        if (!isNaN(I51)) {
                            return I51;
                        }
                    }
                    if (s51) {
                        return l0f[O51](s51);
                    }
                    if (A0f[O51] !== S3f) {
                        return A0f[O51];
                    }
                    return l0f[O51](r51);
                }

                function T51(V51) {
                    return H0f(Math.round((V51.getTime() - new Date(V51).setHours(0, 0, 0, 0)) / 1000), Q0f, 0, 86400);
                }

                function W0f(B51) {
                    return B51.getFullYear() + '-' + z51(B51.getMonth() + 1) + '-' + z51(B51.getDate());
                }

                function f51(k51) {
                    return k51.getHours() > 11 ? 1 : 0;
                }

                function y51(J51) {
                    return J51.getMilliseconds();
                }

                function b51(o51) {
                    return H0f(o51.getSeconds(), Z0f, u0f, B0f);
                }

                function l51(u51) {
                    return H0f(u51.getMinutes(), i0f, U0f, V0f);
                }

                function H51(v51) {
                    var L51 = v51.getHours();
                    L51 = P0f && L51 >= 12 ? L51 - 12 : L51;
                    return H0f(L51, t0f, m0f, I0f);
                }

                function q51(X51) {
                    return T0f.getDay(X51);
                }

                function c51(Y51) {
                    return T0f.getMonth(Y51);
                }

                function K51(p51) {
                    return T0f.getYear(p51);
                }

                function J0f(M51, Q51, m51) {
                    return Math.floor((m51 - Q51) / M51) * M51 + Q51;
                }

                function H0f(t51, A51, U51, Z51) {
                    return Math.min(Z51, Math.floor(t51 / A51) * A51 + U51);
                }

                function R51(C51) {
                    var d51, x51, P51, E51 = [];
                    if (C51) {
                        for (d51 = 0; d51 < C51.length; d51++) {
                            x51 = C51[d51];
                            if (x51.start && x51.start.getTime) {
                                P51 = new Date(x51.start);
                                while (P51 <= x51.end) {
                                    E51.push(R0f(P51.getFullYear(), P51.getMonth(), P51.getDate()));
                                    P51.setDate(P51.getDate() + 1);
                                }
                            } else {
                                E51.push(x51);
                            }
                        }
                        return E51;
                    }
                    return C51;
                }
				
				function ai(a) {
					return {
						value: a,
						display: (/yy/i.test(Y0f) ? a : (a + '').substr(2, 2)) + (T0f.yearSuffix || '')
					};
				}
				 
				function ad(a) {
					return a;
				}
				
				function ak(b) {
					var a = /d/i.test(b);
					
					return {
						label: '',
						cssClass: 'mbsc-dt-whl-date',
						min: a51(W0f(b0f), a),
						max: a51(W0f(a0f), a),
						data: function(e) {
							var g = new Date(new Date().setHours(0, 0, 0, 0)),
								d = a ? new Date(e * 8.64e7) : new Date(1970, e, 1);
							if (a) {
								d = new Date(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());
							}
							return {
								invalid: a && !x0f(d, true),
								value: W0f(d),
								display: g.getTime() == d.getTime() ? T0f.todayText : T.formatDate(b, d, T0f)
							};
						},
						getIndex: function(b) {
							return a51(b, a);
						}
					};
				}
				

				 function a6() {
						var p, s, c, l, b, g, e, n, d = 0,
							o = [],
							m = [],
							i = [];
						if (M0f.match(/date/i)) {
							p = SS0f.split(/\|/.test(SS0f) ? '|' : '');
							for (l = 0; l < p.length; l++) {
								c = p[l];
								g = 0;
								if (c.length) {
									if (/y/i.test(c)) {
										g++;
									}
									if (/m/i.test(c)) {
										g++;
									}
									if (/d/i.test(c)) {
										g++;
									}
									

									if (g > 1 && y0f.dd === S3f) {
										y0f.dd = d;
										d++;		
										m.push(ak(c));
										i = m;
										a2 = true;
									} else if (/y/i.test(c) && y0f.y === S3f) {
										y0f.y = d;
										d++;
										m.push({
											cssClass: 'mbsc-dt-whl-y',
											label: T0f.yearText,
											min: T0f.getYear(b0f),
											max: T0f.getYear(a0f),
											data: ai,
											getIndex: ad
										});
									} else if (/m/i.test(c) && y0f.m === S3f) {
										y0f.m = d;
										e = [];
										d++;
										for (b = 0; b < 12; b++) {
											n = Y0f.replace(/[dy]/gi, '').replace(/mm/, z51(b + 1) + (T0f.monthSuffix || '')).replace(/m/, b + 1 + (T0f.monthSuffix || ''));
											e.push({
												value: b,
												display: /MM/.test(n) ? n.replace(/MM/, '<span class="mbsc-dt-month">' + T0f.monthNames[b] + '</span>') : n.replace(/M/, '<span class="mbsc-dt-month">' + T0f.monthNamesShort[b] + '</span>')
											});
										}
										m.push({
											cssClass: 'mbsc-dt-whl-m',
											label: T0f.monthText,
											data: e
										});
									} else if (/d/i.test(c) && y0f.d === S3f) {
										y0f.d = d;
										e = [];
										d++;
										for (b = 1; b < 32; b++) {
											e.push({
												value: b,
												display: (/dd/i.test(Y0f) ? z51(b) : b) + (T0f.daySuffix || '')
											});
										}
										m.push({
											cssClass: 'mbsc-dt-whl-d',
											label: T0f.dayText,
											data: e
										});
									}
								}
							}
							o.push(m);
						}
						if (M0f.match(/time/i)) {
							s = h0f.split(/\|/.test(h0f) ? '|' : '');
							for (l = 0; l < s.length; l++) {
								c = s[l];
								g = 0;
								if (c.length) {
									if (/h/i.test(c)) {
										g++;
									}
									if (/i/i.test(c)) {
										g++;
									}
									if (/s/i.test(c)) {
										g++;
									}
									if (/a/i.test(c)) {
										g++;
									}
								}
								if (g > 1 && y0f.tt === S3f) {
									y0f.tt = d;
									d++;
									i.push(ab(c));
								} else if (/h/i.test(c) && y0f.h === S3f) {
									e = [];
									y0f.h = d;
									d++;
									for (b = m0f; b < (P0f ? 12 : 24); b += t0f) {
										e.push({
											value: b,
											display: P0f && b === 0 ? 12 : /hh/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-h',
										label: T0f.hourText,
										data: e
									});
								} else if (/i/i.test(c) && y0f.i === S3f) {
									e = [];
									y0f.i = d;
									d++;
									for (b = U0f; b < 60; b += i0f) {
										e.push({
											value: b,
											display: /ii/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-i',
										label: T0f.minuteText,
										data: e
									});
								} else if (/s/i.test(c) && y0f.s === S3f) {
									e = [];
									y0f.s = d;
									d++;
									for (b = O; b < 60; b += z) {
										e.push({
											value: b,
											display: /ss/i.test(G0f) ? z51(b) : b
										});
									}
									i.push({
										cssClass: 'mbsc-dt-whl-s',
										label: T0f.secText,
										data: e
									});
								} else if (/a/i.test(c) && y0f.a === S3f) {
									y0f.a = d;
									d++;
									i.push({
										cssClass: 'mbsc-dt-whl-a',
										label: T0f.ampmText,
										data: /A/.test(c) ? [{
											value: 0,
											display: T0f.amText.toUpperCase()
										}, {
											value: 1,
											display: T0f.pmText.toUpperCase()
										}] : [{
											value: 0,
											display: T0f.amText
										}, {
											value: 1,
											display: T0f.pmText
										}]
									});
								}
							}
							if (i != m) {
								o.push(i);
							}
						}
						return o;
					}
				

                function z51(i51) {
                    return i51 < 10 ? '0' + i51 : i51;
                }

                var Q0f, r0f, D0f, y0f = {},
                    A0f = {},
                    F0f = [],
                    k0f = w51(D3f(this)),
                    e0f = D3f.extend({}, f0f.settings),
                    T0f = D3f.extend(f0f.settings, W3f.util.datetime.defaults, z0f, k0f, e0f),
                    X0f = R51(T0f.invalid),
                    L0f = R51(T0f.valid),
                    M0f = T0f.preset,
                    p0f = M0f == 'datetime' ? T0f.dateFormat + T0f.separator + T0f.timeFormat : M0f == 'time' ? T0f.timeFormat : T0f.dateFormat,
                    O0f = k0f.format || p0f,
					SS0f = T0f.dateWheels || T0f.dateFormat,
                    h0f = T0f.timeWheels || T0f.timeFormat,
                    Y0f = T0f.dateWheels || T0f.dateDisplay,
                    G0f = h0f,
                    n0f = T0f.baseTheme || T0f.theme,
                    b0f = T0f.min || R0f(new Date().getFullYear() - 100, 0, 1),
                    a0f = T0f.max || R0f((new Date().getFullYear() + 100), 11, 31, 23, 59, 59),
                    o0f = /time/i.test(M0f),
                    P0f = /h/.test(G0f),
                    S0f = /D/.test(Y0f),
                    d0f = T0f.steps || {},
                    t0f = d0f.hour || T0f.stepHour || 1,
                    i0f = d0f.minute || T0f.stepMinute || 1,
                    Z0f = d0f.second || T0f.stepSecond || 1,
                    v0f = d0f.zeroBased,
                    m0f = v0f || !b0f ? 0 : b0f.getHours() % t0f,
                    U0f = v0f || !b0f ? 0 : b0f.getMinutes() % i0f,
                    u0f = v0f || !b0f ? 0 : b0f.getSeconds() % Z0f,
                    I0f = J0f(t0f, m0f, P0f ? 11 : 23),
                    V0f = J0f(i0f, U0f, 59),
                    B0f = J0f(i0f, U0f, 59),
                    w0f = {
                        y: b0f ? b0f.getFullYear() : -Infinity,
                        m: 0,
                        d: 1,
                        h: m0f,
                        i: U0f,
                        s: u0f,
                        a: 0,
                        tt: 0
                    },
                    q0f = {
                        y: a0f ? a0f.getFullYear() : Infinity,
                        m: 11,
                        d: 31,
                        h: I0f,
                        i: V0f,
                        s: B0f,
                        a: 1,
                        tt: 86400
                    },
                    c0f = {
                        y: 1,
                        m: 1,
                        d: 1,
                        h: t0f,
                        i: i0f,
                        s: Z0f,
                        a: 1,
                        tt: 1
                    },
                    N51 = {
                        'android-holo': 40,
                        bootstrap: 46,
                        ios: 50,
                        jqm: 46,
                        material: 46,
                        mobiscroll: 46,
                        wp: 50
                    },
                    l0f = {
                        y: K51,
                        m: c51,
                        d: q51,
                        h: H51,
                        i: l51,
                        s: b51,
                        u: y51,
                        a: f51,
                        dd: W0f,
                        tt: T51
                    };
                f0f.getDate = f0f.getVal = function(d21) {
                    return f0f._hasValue || d21 ? C0f(f0f.getArrayVal(d21)) : null;
                };
                f0f.setDate = function(E21, A21, t21, U21, Z21) {
                    f0f.setArrayVal(E0f(E21), A21, Z21, U21, t21);
                };

				D0f = a6();

                f0f.format = p0f;
                f0f.order = y0f;
				
                f0f.handlers.now = function() {
                    f0f.setDate(new Date(), f0f.live, 1000, true, true);
                };
                f0f.buttons.now = {
                    text: T0f.nowText,
                    icon: T0f.nowIcon,
                    handler: 'now'
                };
                return {
                    minWidth: r0f && o0f ? N51[n0f] : S3f,
                    compClass: 'mbsc-dt',
                    wheels: D0f,
                    headerText: T0f.headerText ? function() {
                        return T.formatDate(p0f, C0f(f0f.getArrayVal(true)), T0f);
                    } : false,
                    formatValue: function(M21) {
                        return T.formatDate(O0f, C0f(M21), T0f);
                    },
                    parseValue: function(Q21) {
                        if (!Q21) {
                            A0f = {};
                        }
                        return E0f(Q21 ? T.parseDate(O0f, Q21, T0f) : T0f.defaultValue && T0f.defaultValue.getTime ? T0f.defaultValue : new Date(), !!Q21 && !!Q21.getTime);
                    },
                    validate: function(s21) {
                        var m21, v21, J21, r21, G21 = s21.values,
                            V21 = s21.index,
                            e21 = s21.direction,
                            L21 = f0f.settings.wheels[0][y0f.d],
                            X21 = F51(C0f(G21), e21),
                            O21 = E0f(X21),
                            u21 = [],
                            I21 = {},
                            Y21 = l0f.y(X21),
                            p21 = l0f.m(X21),
                            o21 = T0f.getMaxDayOfMonth(Y21, p21),
                            k21 = true,
                            B21 = true;
                        D3f.each(['dd', 'y', 'm', 'd', 'tt', 'a', 'h', 'i', 's'], function(W21, n21) {
                            if (y0f[n21] !== S3f) {
                                var g21 = w0f[n21],
                                    h21 = q0f[n21],
                                    j21 = l0f[n21](X21);
                                u21[y0f[n21]] = [];
                                if (k21 && b0f) {
                                    g21 = l0f[n21](b0f);
                                }
                                if (B21 && a0f) {
                                    h21 = l0f[n21](a0f);
                                }
                                if (n21 != 'y' && n21 != 'dd') {
                                    for (v21 = w0f[n21]; v21 <= q0f[n21]; v21 += c0f[n21]) {
                                        if (v21 < g21 || v21 > h21) {
                                            u21[y0f[n21]].push(v21);
                                        }
                                    }
                                }
                                if (j21 < g21) {
                                    j21 = g21;
                                }
                                if (j21 > h21) {
                                    j21 = h21;
                                }
                                if (k21) {
                                    k21 = j21 == g21;
                                }
                                if (B21) {
                                    B21 = j21 == h21;
                                }
                                if (n21 == 'd') {
                                    var D21 = T0f.getDate(Y21, p21, 1).getDay(),
                                        S21 = {};
                                    g0f(X0f, Y21, p21, D21, o21, S21, 1);
                                    g0f(L0f, Y21, p21, D21, o21, S21, 0);
                                    D3f.each(S21, function(R61, z61) {
                                        if (z61) {
                                            u21[y0f[n21]].push(R61);
                                        }
                                    });
                                }
                            }
                        });
                        if (o0f) {
                            D3f.each(['a', 'h', 'i', 's', 'tt'], function(f61, N61) {
                                var b61 = l0f[N61](X21),
                                    y61 = l0f.d(X21),
                                    T61 = {};
                                if (y0f[N61] !== S3f) {
                                    j0f(X0f, f61, N61, Y21, p21, y61, T61, 0);
                                    j0f(L0f, f61, N61, Y21, p21, y61, T61, 1);
                                    D3f.each(T61, function(l61, H61) {
                                        if (H61) {
                                            u21[y0f[N61]].push(l61);
                                        }
                                    });
                                    F0f[f61] = f0f.getValidValue(y0f[N61], b61, e21, T61);
                                }
                            });
                        }
                        if (L21 && (L21._length !== o21 || S0f && (V21 === S3f || V21 === y0f.y || V21 === y0f.m))) {
                            I21[y0f.d] = L21;
                            L21.data = [];
                            for (m21 = 1; m21 <= o21; m21++) {
                                r21 = T0f.getDate(Y21, p21, m21).getDay();
                                J21 = Y0f.replace(/[my]/gi, '').replace(/dd/, (m21 < 10 ? '0' + m21 : m21) + (T0f.daySuffix || '')).replace(/d/, m21 + (T0f.daySuffix || ''));
                                L21.data.push({
                                    value: m21,
                                    display: J21.match(/DD/) ? J21.replace(/DD/, '<span class="mbsc-dt-day">' + T0f.dayNames[r21] + '</span>') : J21.replace(/D/, '<span class="mbsc-dt-day">' + T0f.dayNamesShort[r21] + '</span>')
                                });
                            }
                            f0f._tempWheelArray[y0f.d] = O21[y0f.d];
                            f0f.changeWheel(I21);
                        }
                        return {
                            disabled: u21,
                            valid: O21
                        };
                    }
                };
            };
        D3f.each(['date', 'time', 'datetime'], function(c61, q61) {
            W3f.presets.scroller[q61] = N0f;
        });
}());
        (function(Z61, t61, i61) {
            var F61 = R,
                K61 = F61.$,
                C61 = F61.presets.scroller,
                a61 = F61.util,
                w61 = a61.datetime.adjustedDate,
                U61 = a61.jsPrefix,
                E61 = a61.testTouch,
                P61 = a61.getCoord,
                x61 = a61.animEnd,
                d61 = new Date(),
                A61 = {
                    min: new Date(d61.getFullYear() - 100, 0, 1),
                    max: new Date(d61.getFullYear() + 1, 11, 31, 23, 59, 59),
                    controls: ['calendar'],
                    firstDay: 0,
                    weekDays: 'short',
                    maxMonthWidth: 170,
                    months: 1,
                    preMonths: 1,
                    highlight: true,
                    outerMonthChange: true,
                    quickNav: true,
                    yearChange: true,
                    todayClass: 'mbsc-cal-today',
                    btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left6',
                    btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right6',
                    dateText: 'Date',
                    timeText: 'Time',
                    calendarText: 'Calendar',
                    todayText: 'Today',
                    prevMonthText: 'Previous Month',
                    nextMonthText: 'Next Month',
                    prevYearText: 'Previous Year',
                    nextYearText: 'Next Year'
                };
            C61.calbase = function(m61) {
                function v71(n91) {
                    return n91[0].innerWidth || n91.innerWidth();
                }

                function T71() {
                    K61(this).removeClass('mbsc-cal-p-out mbsc-cal-p-in');
                }

                function Z41(r91, G91) {
                    if ((G91 || r91).hasClass('mbsc-cal-v')) {
                        K41(r91);
                    } else {
                        G41(r91);
                    }
                }

                function K41(s91, e91) {
                    if (s91.hasClass('mbsc-cal-v')) {
                        s91.removeClass('mbsc-cal-v mbsc-cal-p-in').addClass('mbsc-cal-h' + (e91 ? '' : ' mbsc-cal-p-out'));
                    }
                }

                function G41(O91, I91) {
                    if (!O91.hasClass('mbsc-cal-v')) {
                        O91.addClass('mbsc-cal-v' + (I91 ? '' : ' mbsc-cal-p-in')).removeClass('mbsc-cal-p-out mbsc-cal-h');
                        m61.trigger('onSelectShow');
                    }
                }

                function A71(V91) {
                    if (r61 && M61.getDate(v61, X61, 1) >= M61.getDate(M61.getYear(e61) + 1, M61.getMonth(e61) + u61, 1)) {
                        N41(--v61, X61, 'prev', L61, true, true, function() {
                            A71(V91);
                        });
                    } else if (r61 && !V91.hasClass('mbsc-fr-btn-d')) {
                        N41(M61.getYear(e61), M61.getMonth(e61) + u61, 'prev', L61, true, true);
                    }
                }

                function d71(B91) {
                    if (r61 && M61.getDate(v61, X61, 1) <= M61.getDate(M61.getYear(I61) - 1, M61.getMonth(I61) - O41, 1)) {
                        N41(++v61, X61, 'next', L61, true, true, function() {
                            d71(B91);
                        });
                    } else if (r61 && !B91.hasClass('mbsc-fr-btn-d')) {
                        N41(M61.getYear(I61), M61.getMonth(I61) - O41, 'next', L61, true, true);
                    }
                }

                function y71() {
                    if (r61 && M61.getDate(v61, X61 - u61 - 1, 1) >= e61) {
                        N41(v61, --X61, 'prev', 1, false, true, y71);
                    }
                }

                function l71() {
                    if (r61 && M61.getDate(v61, X61 + Y61 - u61, 1) <= I61 && R.CsDrb) {
                        N41(v61, ++X61, 'next', 1, false, true, l71);
                    }
                }

                function Y71(k91) {
                    if (m61.isVisible() && s61) {
                        if (!m61.changing) {
                            m41(v61, X61, k91);
                        } else {
                            s41 = k91;
                        }
                    }
                }

                function H71(J91, o91) {
                    J91.attr('data-curr', o91);
                    J91[0].style[U61 + 'Transform'] = 'translate3d(' + (O61 ? '0,' + o91 + '%,' : o91 + '%,' + '0,') + '0)';
                }

                function B71() {
                    var m91 = K61(this),
                        X91 = m61.live,
                        p91 = m61.getDate(true),
                        L91 = m91.attr('data-full'),
                        Y91 = L91.split('-'),
                        Q91 = w61(Y91[0], Y91[1], Y91[2]),
                        v91 = w61(Q91.getFullYear(), Q91.getMonth(), Q91.getDate(), p91.getHours(), p91.getMinutes(), p91.getSeconds()),
                        u91 = m91.hasClass('mbsc-cal-day-sel');
                    if (!e41 && m91.hasClass('mbsc-cal-day-diff')) {
                        return;
                    }
                    if (m61.trigger('onDayChange', K61.extend(R71[L91], {
                            date: v91,
                            target: this,
                            selected: u91
                        })) !== false) {
                        m61.needsSlide = false;
                        W41 = true;
                        m61.setDate(v91, X91, 0.2, !X91, true);
                        if (M61.outerMonthChange) {
                            r61 = true;
                            if (Q91 < M61.getDate(v61, X61 - u61, 1)) {
                                y71();
                            } else if (Q91 > M61.getDate(v61, X61 - u61 + Y61, 0)) {
                                l71();
                            }
                            r61 = false;
                        }
                        if (m61.live) {
                            m61.trigger('onSet', {
                                valueText: m61._value
                            });
                        }
                    }
                }

                function N41(P91, x91, d91, C91, A91, t91, U91) {
                    if (P91) {
                        t41.push({
                            y: P91,
                            m: x91,
                            dir: d91,
                            slideNr: C91,
                            load: A91,
                            active: t91,
                            callback: U91
                        });
                    }
                    if (x41) {
                        return;
                    }
                    var E91 = t41.shift(),
                        Z91;
                    P91 = E91.y;
                    x91 = E91.m;
                    d91 = E91.dir === 'next';
                    C91 = E91.slideNr;
                    A91 = E91.load;
                    t91 = E91.active;
                    U91 = E91.callback || B41;
                    Z91 = M61.getDate(P91, x91, 1);
                    P91 = M61.getYear(Z91);
                    x91 = M61.getMonth(Z91);
                    x41 = true;
                    m61.changing = true;
                    m61.trigger('onMonthChange', {
                        year: P91,
                        month: x91
                    });
                    m61.trigger('onMonthLoading', {
                        year: P91,
                        month: x91
                    });
                    m71(P91, x91);
                    if (A91) {
                        for (Q61 = 0; Q61 < Y61; Q61++) {
                            o61[d91 ? n61 - Y61 + Q61 : Q61].html(X41(P91, x91 - u61 + Q61));
                        }
                    }
                    if (t91) {
                        d41.addClass('mbsc-cal-slide-a');
                    }
                    setTimeout(function() {
                        m61.ariaMessage(M61.monthNames[x91] + ' ' + P91);
                        w71(P91, x91, 200);
                        S61 = d91 ? S61 - J61 * C91 * w41 : S61 + J61 * C91 * w41;
                        l41.scroll(S61, t91 ? 200 : 0, false, function() {
                            var M91;
                            if (o61.length) {
                                d41.removeClass('mbsc-cal-slide-a').attr('aria-hidden', 'true');
                                if (d91) {
                                    M91 = o61.splice(0, C91);
                                    for (Q61 = 0; Q61 < C91; Q61++) {
                                        o61.push(M91[Q61]);
                                        H71(o61[o61.length - 1], +o61[o61.length - 2].attr('data-curr') + 100 * w41);
                                    }
                                } else {
                                    M91 = o61.splice(n61 - C91, C91);
                                    for (Q61 = C91 - 1; Q61 >= 0; Q61--) {
                                        o61.unshift(M91[Q61]);
                                        H71(o61[0], +o61[1].attr('data-curr') - 100 * w41);
                                    }
                                }
                                for (Q61 = 0; Q61 < C91; Q61++) {
                                    o61[d91 ? n61 - C91 + Q61 : Q61].html(X41(P91, x91 - u61 - L61 + Q61 + (d91 ? n61 - C91 : 0)));
                                    if (A91) {
                                        o61[d91 ? Q61 : n61 - C91 + Q61].html(X41(P91, x91 - u61 - L61 + Q61 + (d91 ? 0 : n61 - C91)));
                                    }
                                }
                                for (Q61 = 0; Q61 < Y61; Q61++) {
                                    o61[L61 + Q61].addClass('mbsc-cal-slide-a').removeAttr('aria-hidden');
                                }
                                c71(P91, x91);
                                x41 = false;
                            }
                            if (t41.length) {
                                setTimeout(function() {
                                    N41();
                                }, 10);
                            } else {
                                v61 = P91;
                                X61 = x91;
                                m61.changing = false;
                                K61('.mbsc-cal-day', i41).attr('tabindex', -1);
                                o71();
                                if (s41 !== i61) {
                                    m41(P91, x91, s41);
                                } else {
                                    m61.trigger('onMonthLoaded', {
                                        year: P91,
                                        month: x91
                                    });
                                }
                                U91();
                            }
                        });
                    }, 10);
                }

                function o71() {
                    if (C41) {
                        Z71.html(K61('.mbsc-cal-week-nr-c', o61[L61]).html());
                    }
                    K61('.mbsc-cal-slide-a .mbsc-cal-day', i41).attr('tabindex', 0);
                }

                function c71(F91, i91) {
                    var w91 = L61,
                        a91 = L61;
                    while (a91 && M61.getDate(F91, i91 + a91 + Y61 - u61 - 1, 1) > I61) {
                        a91--;
                    }
                    while (w91 && M61.getDate(F91, i91 - w91 - u61, 1) < e61) {
                        w91--;
                    }
                    K61.extend(l41.settings, {
                        contSize: Y61 * J61,
                        snap: J61,
                        minScroll: S61 - (z41 ? w91 : a91) * J61,
                        maxScroll: S61 + (z41 ? a91 : w91) * J61
                    });
                    l41.refresh();
                }

                function m41(q91, c91, K91) {
                    if (!K91) {
                        m61.trigger('onMonthLoading', {
                            year: q91,
                            month: c91
                        });
                    }
                    m71(q91, c91);
                    for (Q61 = 0; Q61 < n61; Q61++) {
                        o61[Q61].html(X41(q91, c91 - u61 - L61 + Q61));
                    }
                    o71();
                    s41 = i61;
                    m61.trigger('onMonthLoaded', {
                        year: q91,
                        month: c91
                    });
                }

                function K71(T91, H91) {
                    if (s61 && (j61 === 'calendar' || H91)) {
                        var l91, y91, b91 = M61.getDate(v61, X61, 1),
                            f91 = Math.abs((M61.getYear(T91) - M61.getYear(b91)) * 12 + M61.getMonth(T91) - M61.getMonth(b91));
                        if (m61.needsSlide && f91) {
                            v61 = M61.getYear(T91);
                            X61 = M61.getMonth(T91);
                            if (T91 > b91) {
                                y91 = f91 > L61 - u61 + Y61 - 1;
                                X61 -= y91 ? 0 : f91 - L61;
                                l91 = 'next';
                            } else if (T91 < b91) {
                                y91 = f91 > L61 + u61;
                                X61 += y91 ? 0 : f91 - L61;
                                l91 = 'prev';
                            }
                            N41(v61, X61, l91, Math.min(f91, L61), y91, true);
                        }
                        if (!H91) {
                            H41 = T91;
                            V71(T91);
                        }
                        m61.needsSlide = true;
                    }
                }

                function V71(N91) {
                    m61.trigger('onDayHighlight', {
                        date: N91
                    });
                    if (M61.highlight) {
                        K61('.mbsc-cal-day-sel .mbsc-cal-day-i', V61).removeClass(y41);
                        K61('.mbsc-cal-day-sel', V61).removeClass('mbsc-cal-day-sel').removeAttr('aria-selected');
                        K61('.mbsc-cal-week-hl', V61).removeClass('mbsc-cal-week-hl');
                        if (M61.defaultValue !== null || m61._hasValue) {
                            K61('.mbsc-cal-day[data-full="' + N91.getFullYear() + '-' + N91.getMonth() + '-' + N91.getDate() + '"]', V61).addClass('mbsc-cal-day-sel').attr('aria-selected', 'true').find('.mbsc-cal-day-i').addClass(y41).closest('.mbsc-cal-row').addClass('mbsc-cal-week-hl');
                        }
                    }
                }

                function r41(z91) {
                    z91.addClass(F71).find('.mbsc-cal-btn-txt').attr('aria-disabled', 'true');
                }

                function I41(R91) {
                    R91.removeClass(F71).find('.mbsc-cal-btn-txt').removeAttr('aria-disabled');
                }

                function w71(j81, g81, W81) {
                    var h81 = M61.getDate(j81, g81, 1),
                        n81 = M61.getYear(h81),
                        D81 = M61.getMonth(h81),
                        S81 = n81 + o41;
                    if (T41) {
                        if (b41) {
                            b41.removeClass('mbsc-cal-sc-sel').removeAttr('aria-selected').find('.mbsc-cal-sc-cell-i').removeClass(y41);
                        }
                        if (J41) {
                            J41.removeClass('mbsc-cal-sc-sel').removeAttr('aria-selected').find('.mbsc-cal-sc-cell-i').removeClass(y41);
                        }
                        b41 = K61('.mbsc-cal-year-s[data-val="' + n81 + '"]', p61).addClass('mbsc-cal-sc-sel').attr('aria-selected', 'true');
                        J41 = K61('.mbsc-cal-month-s[data-val="' + D81 + '"]', p61).addClass('mbsc-cal-sc-sel').attr('aria-selected', 'true');
                        b41.find('.mbsc-cal-sc-cell-i').addClass(y41);
                        J41.find('.mbsc-cal-sc-cell-i').addClass(y41);
                        if (G61) {
                            G61.scroll(b41, W81);
                        }
                        K61('.mbsc-cal-month-s', p61).removeClass('mbsc-fr-btn-d');
                        if (n81 === E41) {
                            for (Q61 = 0; Q61 < p71; Q61++) {
                                K61('.mbsc-cal-month-s[data-val="' + Q61 + '"]', p61).addClass('mbsc-fr-btn-d');
                            }
                        }
                        if (n81 === j41) {
                            for (Q61 = t71 + 1; Q61 <= 12; Q61++) {
                                K61('.mbsc-cal-month-s[data-val="' + Q61 + '"]', p61).addClass('mbsc-fr-btn-d');
                            }
                        }
                    }
                    if (A41.length == 1) {
                        A41.attr('aria-label', n81).html(S81);
                    }
                    for (Q61 = 0; Q61 < Y61; ++Q61) {
                        h81 = M61.getDate(j81, g81 - u61 + Q61, 1);
                        n81 = M61.getYear(h81);
                        D81 = M61.getMonth(h81);
                        S81 = n81 + o41;
                        K61(D41[Q61]).attr('aria-label', M61.monthNames[D81] + (c41 ? '' : ' ' + n81)).html((!c41 && V41 < k41 ? S81 + ' ' : '') + L41[D81] + (!c41 && V41 > k41 ? ' ' + S81 : ''));
                        if (A41.length > 1) {
                            K61(A41[Q61]).html(S81);
                        }
                    }
                    if (M61.getDate(j81, g81 - u61 - 1, 1) < e61) {
                        r41(K61('.mbsc-cal-prev-m', p61));
                    } else {
                        I41(K61('.mbsc-cal-prev-m', p61));
                    }
                    if (M61.getDate(j81, g81 + Y61 - u61, 1) > I61) {
                        r41(K61('.mbsc-cal-next-m', p61));
                    } else {
                        I41(K61('.mbsc-cal-next-m', p61));
                    }
                    if (M61.getDate(j81, g81, 1).getFullYear() <= e61.getFullYear()) {
                        r41(K61('.mbsc-cal-prev-y', p61));
                    } else {
                        I41(K61('.mbsc-cal-prev-y', p61));
                    }
                    if (M61.getDate(j81, g81, 1).getFullYear() >= I61.getFullYear()) {
                        r41(K61('.mbsc-cal-next-y', p61));
                    } else {
                        I41(K61('.mbsc-cal-next-y', p61));
                    }
                }

                function X41(r81, G81) {
                    var C81, u81, M81, p81, Y81, s81, U81, o81, E81, B81, Q81, L81, m81, e81, J81, A81, t81 = 1,
                        V81 = 0,
                        O81 = M61.getDate(r81, G81, 1),
                        I81 = M61.getYear(O81),
                        X81 = M61.getMonth(O81),
                        d81 = M61.defaultValue === null && !m61._hasValue ? null : m61.getDate(true),
                        v81 = M61.getDate(I81, X81, 1).getDay(),
                        Z81 = '<div class="mbsc-cal-table">',
                        k81 = '<div class="mbsc-cal-week-nr-c">';
                    if (M61.firstDay - v81 + 1 > 1) {
                        V81 = 7;
                    }
                    for (A81 = 0; A81 < 42; A81++) {
                        J81 = A81 + M61.firstDay - V81;
                        C81 = M61.getDate(I81, X81, J81 - v81 + 1);
                        M81 = C81.getFullYear();
                        p81 = C81.getMonth();
                        Y81 = C81.getDate();
                        s81 = M61.getMonth(C81);
                        U81 = M61.getDay(C81);
                        e81 = M61.getMaxDayOfMonth(M81, p81);
                        o81 = M81 + '-' + p81 + '-' + Y81;
                        E81 = K61.extend({
                            valid: O71(C81),
                            selected: d81 && d81.getFullYear() === M81 && d81.getMonth() === p81 && d81.getDate() === Y81
                        }, m61.getDayProps(C81, d81));
                        B81 = E81.valid;
                        Q81 = E81.selected;
                        u81 = E81.cssClass;
                        L81 = new Date(C81).setHours(12, 0, 0, 0) === new Date().setHours(12, 0, 0, 0);
                        m81 = s81 !== X81;
                        R71[o81] = E81;
                        if (A81 % 7 === 0) {
                            Z81 += (A81 ? '</div>' : '') + '<div class="mbsc-cal-row' + (M61.highlight && d81 && d81 - C81 >= 0 && d81 - C81 < 1000 * 60 * 60 * 24 * 7 ? ' mbsc-cal-week-hl' : '') + '">';
                        }
                        if (C41 && C81.getDay() == 1) {
                            if (C41 == 'month' && m81 && t81 > 1) {
                                t81 = Y81 == 1 ? 1 : 2;
                            } else if (C41 == 'year') {
                                t81 = M61.getWeekNumber(C81);
                            }
                            k81 += '<div class="mbsc-cal-week-nr"><div class="mbsc-cal-week-nr-i">' + t81 + '</div></div>';
                            t81++;
                        }
                        Z81 += '<div role="button" tabindex="-1"' + ' aria-label="' + (L81 ? M61.todayText + ', ' : '') + M61.dayNames[C81.getDay()] + ', ' + M61.monthNames[s81] + ' ' + U81 + ' ' + (E81.ariaLabel ? ', ' + E81.ariaLabel : '') + '"' + (m81 && !e41 ? ' aria-hidden="true"' : '') + (Q81 ? ' aria-selected="true"' : '') + (B81 ? '' : ' aria-disabled="true"') + ' data-day="' + J81 % 7 + '"' + ' data-full="' + o81 + '"' + 'class="mbsc-cal-day ' + (M61.dayClass || '') + (Q81 ? ' mbsc-cal-day-sel' : '') + (L81 ? ' ' + M61.todayClass : '') + (u81 ? ' ' + u81 : '') + (U81 == 1 ? ' mbsc-cal-day-first' : '') + (U81 == e81 ? ' mbsc-cal-day-last' : '') + (m81 ? ' mbsc-cal-day-diff' : '') + (B81 ? ' mbsc-cal-day-v mbsc-fr-btn-e mbsc-fr-btn-nhl' : ' mbsc-cal-day-inv') + '"><div class="mbsc-cal-day-i ' + (Q81 ? y41 : '') + ' ' + (M61.innerDayClass || '') + '">' + '<div class="mbsc-cal-day-fg">' + U81 + '</div>' + (E81.markup || '') + '<div class="mbsc-cal-day-frame"></div></div></div>';
                    }
                    Z81 += '</div></div>' + k81 + '</div>';
                    return Z81;
                }

                function u71(K81, w81, P81, a81, x81, F81, i81) {
                    var c81 = '<div class="mbsc-cal-h mbsc-cal-sc-c mbsc-cal-' + K81 + '-c ' + (M61.calendarClass || '') + '"><div class="mbsc-cal-sc"><div class="mbsc-cal-sc-p"><div class="mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-row">';
                    for (Q61 = 1; Q61 <= w81; Q61++) {
                        if (Q61 <= 12 || Q61 > P81) {
                            c81 += '<div class="mbsc-cal-sc-m-cell mbsc-cal-sc-cell mbsc-cal-sc-empty"><div class="mbsc-cal-sc-cell-i">&nbsp;</div></div>';
                        } else {
                            c81 += '<div tabindex="0" role="button"' + (F81 ? ' aria-label="' + F81[Q61 - 13] + '"' : '') + ' class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-cal-sc-m-cell mbsc-cal-sc-cell mbsc-cal-' + K81 + '-s" data-val=' + (a81 + Q61 - 13) + '><div class="mbsc-cal-sc-cell-i mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-cell">' + (i81 ? i81[Q61 - 13] : a81 + Q61 - 13 + x81) + '</div></div></div>';
                        }
                        if (Q61 < w81) {
                            if (Q61 % 12 === 0) {
                                c81 += '</div></div></div><div class="mbsc-cal-sc-p" style="' + (O61 ? 'top' : z41 ? 'right' : 'left') + ':' + Math.round(Q61 / 12) * 100 + '%"><div class="mbsc-cal-sc-tbl"><div class="mbsc-cal-sc-row">';
                            } else if (Q61 % 3 === 0) {
                                c81 += '</div><div class="mbsc-cal-sc-row">';
                            }
                        }
                    }
                    c81 += '</div></div></div></div></div>';
                    return c81;
                }

                function m71(H81, q81) {
                    Q71 = a71(M61.invalid, H81, q81);
                    M71 = a71(M61.valid, H81, q81);
                    m61.onGenMonth(H81, q81);
                }

                function a71(N81, D71, R81) {
                    var W71, h71, j71, S71, g71 = {},
                        z81 = L61 + O41;
                    if (N81) {
                        K61.each(N81, function(l81, T81) {
                            W71 = T81.d || T81.start || T81;
                            h71 = W71 + '';
                            if (T81.start && T81.end) {
                                S71 = new Date(T81.start);
                                while (S71 <= T81.end) {
                                    j71 = w61(S71.getFullYear(), S71.getMonth(), S71.getDate());
                                    g71[j71] = g71[j71] || [];
                                    g71[j71].push(T81);
                                    S71.setDate(S71.getDate() + 1);
                                }
                            } else if (W71.getTime) {
                                j71 = w61(W71.getFullYear(), W71.getMonth(), W71.getDate());
                                g71[j71] = g71[j71] || [];
                                g71[j71].push(T81);
                            } else if (!h71.match(/w/i)) {
                                h71 = h71.split('/');
                                if (h71[1]) {
                                    if (R81 + z81 >= 11) {
                                        j71 = M61.getDate(D71 + 1, h71[0] - 1, h71[1]);
                                        g71[j71] = g71[j71] || [];
                                        g71[j71].push(T81);
                                    }
                                    if (R81 - z81 <= 1) {
                                        j71 = M61.getDate(D71 - 1, h71[0] - 1, h71[1]);
                                        g71[j71] = g71[j71] || [];
                                        g71[j71].push(T81);
                                    }
                                    j71 = M61.getDate(D71, h71[0] - 1, h71[1]);
                                    g71[j71] = g71[j71] || [];
                                    g71[j71].push(T81);
                                } else {
                                    for (h61 = 0; h61 < n61; h61++) {
                                        j71 = M61.getDate(D71, R81 - L61 - u61 + h61, h71[0]);
                                        if (M61.getDay(j71) == h71[0]) {
                                            g71[j71] = g71[j71] || [];
                                            g71[j71].push(T81);
                                        }
                                    }
                                }
                            } else {
                                var b81 = +h71.replace('w', ''),
                                    f81 = 0,
                                    y81 = M61.getDate(D71, R81 - L61 - u61, 1).getDay();
                                if (M61.firstDay - y81 + 1 > 1) {
                                    f81 = 7;
                                }
                                for (h61 = 0; h61 < n61 * 5; h61++) {
                                    j71 = M61.getDate(D71, R81 - L61 - u61, h61 * 7 - f81 - y81 + 1 + b81);
                                    g71[j71] = g71[j71] || [];
                                    g71[j71].push(T81);
                                }
                            }
                        });
                    }
                    return g71;
                }

                function O71(n71) {
                    if (n71 < w61(M41.getFullYear(), M41.getMonth(), M41.getDate())) {
                        return false;
                    }
                    if (n71 > J71) {
                        return false;
                    }
                    return Q71[n71] === i61 || M71[n71] !== i61;
                }

                function U71() {
                    g41 = true;
                    if (D61.hasClass('mbsc-cal-prev-m')) {
                        y71();
                    } else if (D61.hasClass('mbsc-cal-next-m')) {
                        l71();
                    } else if (D61.hasClass('mbsc-cal-prev-y')) {
                        A71(D61);
                    } else if (D61.hasClass('mbsc-cal-next-y')) {
                        d71(D61);
                    }
                }

                function i71(G71) {
                    if (G71.type == 'touchend') {
                        G71.preventDefault();
                    }
                    if (D61 && !g41) {
                        U71();
                    }
                    r61 = false;
                    if (G71.type == 'mouseup') {
                        K61(t61).off('mousemove', P71).off('mouseup', i71);
                    }
                }

                function P71(r71) {
                    if (Math.abs(X71 - P61(r71, 'X')) > 7 || Math.abs(L71 - P61(r71, 'Y')) > 7) {
                        r61 = false;
                        D61.removeClass('mbsc-fr-btn-a');
                    }
                }

                function I71(s71) {
                    var e71;
                    D61 = K61(this);
                    g41 = false;
                    if (s71.type != 'keydown') {
                        X71 = P61(s71, 'X');
                        L71 = P61(s71, 'Y');
                        e71 = E61(s71, this);
                    } else {
                        e71 = s71.keyCode === 32;
                    }
                    if (!r61 && e71 && !D61.hasClass('mbsc-fr-btn-d')) {
                        r61 = true;
                        setTimeout(U71, 100);
                        if (s71.type == 'mousedown') {
                            K61(t61).on('mousemove', P71).on('mouseup', i71);
                        }
                    }
                }
                var F41, Q61, h61, N71, u41, p61, z71, V61, i41, J61, S61, W41, s61, f41, p41, Z71, R41, P41, L41, l41, q41, D41, k41, A41, V41, E41, j41, p71, t71, e61, I61, M41, J71, H41, v61, X61, S41, h41, M71, Q71, a41, j61, x41, X71, L71, D61, g41, r61, Y61, n61, O41, u61, s41, e41, k71, G61, b41, J41, b71 = this,
                    d41 = [],
                    o61 = [],
                    t41 = [],
                    k61 = {},
                    R71 = {},
                    B41 = function() {},
                    C71 = K61.extend({}, m61.settings),
                    M61 = K61.extend(m61.settings, A61, C71),
                    E71 = M61.weekDays == 'full' ? '' : M61.weekDays == 'min' ? 'Min' : 'Short',
                    C41 = M61.weekCounter,
                    f71 = M61.layout || (/top|bottom|inline/.test(M61.display) ? 'liquid' : ''),
                    W61 = f71 == 'liquid' && M61.display !== 'bubble',
                    x71 = M61.display == 'center',
                    z41 = M61.rtl,
                    w41 = z41 ? -1 : 1,
                    q71 = W61 ? null : M61.calendarWidth,
                    O61 = M61.calendarScroll == 'vertical',
                    T41 = M61.quickNav,
                    L61 = M61.preMonths,
                    c41 = M61.yearChange,
                    Q41 = M61.controls.join(','),
                    U41 = (M61.tabs === true || M61.tabs !== false && W61) && M61.controls.length > 1,
                    Y41 = !U41 && M61.tabs === i61 && !W61 && M61.controls.length > 1,
                    o41 = M61.yearSuffix || '',
                    y41 = M61.activeClass || '',
                    v41 = 'mbsc-cal-tab-sel ' + (M61.activeTabClass || ''),
                    n41 = M61.activeTabInnerClass || '',
                    F71 = 'mbsc-fr-btn-d ' + (M61.disabledClass || ''),
                    g61 = '',
                    B61 = '';
                if (Q41.match(/calendar/)) {
                    s61 = true;
                } else {
                    T41 = false;
                }
                if (Q41.match(/date/)) {
                    k61.date = 1;
                }
                if (Q41.match(/time/)) {
                    k61.time = 1;
                }
                if (s61 && k61.date) {
                    U41 = true;
                    Y41 = false;
                }
                M61.layout = f71;
                M61.preset = (k61.date || s61 ? 'date' : '') + (k61.time ? 'time' : '');
                if (M61.display == 'inline') {
                    K61(this).closest('[data-role="page"]').on('pageshow', function() {
                        m61.position();
                    });
                }
                m61.changing = false;
                m61.needsSlide = true;
                m61.getDayProps = B41;
                m61.onGenMonth = B41;
                m61.prepareObj = a71;
                m61.refresh = function() {
                    Y71(false);
                };
                m61.redraw = function() {
                    Y71(true);
                };
                m61.navigate = function(h91, D91) {
                    var j91, g91, S91 = m61.isVisible();
                    if (D91 && S91) {
                        K71(h91, true);
                    } else {
                        j91 = M61.getYear(h91);
                        g91 = M61.getMonth(h91);
                        if (S91 && (j91 != v61 || g91 != X61)) {
                            m61.trigger('onMonthChange', {
                                year: j91,
                                month: g91
                            });
                            w71(j91, g91);
                            m41(j91, g91);
                            c71(h91.getFullYear(), h91.getMonth());
                        }
                        v61 = j91;
                        X61 = g91;
                    }
                };
                m61.showMonthView = function() {
                    if (T41 && !P41) {
                        K41(B61, true);
                        K41(g61, true);
                        G41(R41, true);
                        P41 = true;
                    }
                };
                m61.changeTab = function(W91) {
                    if (!m61._isVisible || !k61[W91] || j61 == W91) {
                        return;
                    }
                    j61 = W91;
                    K61('.mbsc-cal-pnl', p61).removeClass('mbsc-cal-p-in').addClass('mbsc-cal-pnl-h');
                    K61('.mbsc-cal-tab', p61).removeClass(v41).removeAttr('aria-selected').find('.mbsc-cal-tab-i').removeClass(n41);
                    K61('.mbsc-cal-tab[data-control="' + W91 + '"]', p61).addClass(v41).attr('aria-selected', 'true').find('.mbsc-cal-tab-i').addClass(n41);
                    k61[j61].removeClass('mbsc-cal-pnl-h').addClass('mbsc-cal-p-in');
                    if (j61 == 'calendar') {
                        F41 = m61.getDate(true);
                        if (F41.getFullYear() !== H41.getFullYear() || F41.getMonth() !== H41.getMonth() || F41.getDate() !== H41.getDate()) {
                            K71(F41);
                        }
                    }
                    m61.showMonthView();
                    m61.trigger('onTabChange', {
                        tab: j61
                    });
                };
                N71 = C61.datetime.call(this, m61);
                k41 = (M61.dateWheels || M61.dateFormat).search(/m/i);
                V41 = (M61.dateWheels || M61.dateFormat).search(/y/i);
                K61.extend(N71, {
                    ariaMessage: M61.calendarText,
                    onMarkupReady: function(T31) {
                        var z31, R31, N31 = '';
                        p61 = K61(T31.target);
                        z71 = M61.display == 'inline' ? K61(this).is('div') ? K61(this) : K61(this).parent() : m61._window;
                        H41 = m61.getDate(true);
                        if (!v61) {
                            v61 = M61.getYear(H41);
                            X61 = M61.getMonth(H41);
                        }
                        S61 = 0;
                        p41 = true;
                        x41 = false;
                        L41 = M61.monthNames;
                        j61 = 'calendar';
                        if (M61.min) {
                            e61 = w61(M61.min.getFullYear(), M61.min.getMonth(), 1);
                            M41 = M61.min;
                        }
                        if (M61.max) {
                            I61 = w61(M61.max.getFullYear(), M61.max.getMonth(), 1);
                            J71 = M61.max;
                        }
                        p61.addClass('mbsc-calendar');
                        u41 = K61('.mbsc-fr-popup', p61);
                        a41 = K61('.mbsc-fr-c', p61);
                        if (k61.date) {
                            k61.date = K61('.mbsc-sc-whl-gr-c', p61).eq(0);
                        } else if (s61) {
                            K61('.mbsc-sc-whl-gr-c', p61).eq(0).addClass('mbsc-cal-hdn');
                        }
                        if (k61.time) {
                            k61.time = K61('.mbsc-sc-whl-gr-c', p61).eq(1);
                        }
                        if (s61) {
                            Y61 = M61.months == 'auto' ? Math.max(1, Math.min(3, Math.floor((q71 || v71(z71)) / 280))) : M61.months;
                            n61 = Y61 + 2 * L61;
                            O41 = Math.floor(Y61 / 2);
                            u61 = Math.round(Y61 / 2) - 1;
                            e41 = M61.showOuterDays === i61 ? Y61 < 2 : M61.showOuterDays;
                            O61 = O61 && Y61 < 2;
                            R31 = '<div class="mbsc-cal-btnw"><div class="' + (z41 ? 'mbsc-cal-next-m' : 'mbsc-cal-prev-m') + ' mbsc-cal-prev mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (M61.btnCalPrevClass || '') + '"' + ' aria-label="' + M61.prevMonthText + '"></div></div>';
                            for (Q61 = 0; Q61 < Y61; ++Q61) {
                                R31 += '<div class="mbsc-cal-btnw-m" style="width: ' + 100 / Y61 + '%"><span role="button" class="mbsc-cal-month"></span></div>';
                            }
                            R31 += '<div class="' + (z41 ? 'mbsc-cal-prev-m' : 'mbsc-cal-next-m') + ' mbsc-cal-next mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (M61.btnCalNextClass || '') + '"' + ' aria-label="' + M61.nextMonthText + '"></div></div></div>';
                            if (c41) {
                                N31 = '<div class="mbsc-cal-btnw"><div class="' + (z41 ? 'mbsc-cal-next-y' : 'mbsc-cal-prev-y') + ' mbsc-cal-prev mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (M61.btnCalPrevClass || '') + '"' + ' aria-label="' + M61.prevYearText + '"></div></div>' + '<span role="button" class="mbsc-cal-year"></span>' + '<div class="' + (z41 ? 'mbsc-cal-prev-y' : 'mbsc-cal-next-y') + ' mbsc-cal-next mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"><div role="button" tabindex="0" class="mbsc-cal-btn-txt ' + (M61.btnCalNextClass || '') + '"' + ' aria-label="' + M61.nextYearText + '"></div></div></div>';
                            }
                            if (T41) {
                                E41 = M61.getYear(e61);
                                j41 = M61.getYear(I61);
                                p71 = M61.getMonth(e61);
                                t71 = M61.getMonth(I61);
                                h41 = Math.ceil((j41 - E41 + 1) / 12) + 2;
                                g61 = u71('month', 36, 24, 0, '', M61.monthNames, M61.monthNamesShort);
                                B61 = u71('year', h41 * 12, j41 - E41 + 13, E41, o41);
                            }
                            f41 = '<div class="mbsc-w-p mbsc-cal-c"><div class="mbsc-cal mbsc-cal-hl-now ' + (Y61 > 1 ? ' mbsc-cal-multi ' : '') + (C41 ? ' mbsc-cal-weeks ' : '') + (O61 ? ' mbsc-cal-vertical' : '') + (e41 ? '' : ' mbsc-cal-hide-diff ') + (M61.calendarClass || '') + '">' + '<div class="mbsc-cal-header"><div class="mbsc-cal-btnc ' + (c41 ? 'mbsc-cal-btnc-ym' : 'mbsc-cal-btnc-m') + '">' + (V41 < k41 || Y61 > 1 ? N31 + R31 : R31 + N31) + '</div></div><div class="mbsc-cal-body"><div class="mbsc-cal-m-c mbsc-cal-v"><div class="mbsc-cal-days-c">';
                            for (h61 = 0; h61 < Y61; ++h61) {
                                f41 += '<div aria-hidden="true" class="mbsc-cal-days" style="width: ' + 100 / Y61 + '%"><table cellpadding="0" cellspacing="0"><tr>';
                                for (Q61 = 0; Q61 < 7; Q61++) {
                                    f41 += '<th>' + M61['dayNames' + E71][(Q61 + M61.firstDay) % 7] + '</th>';
                                }
                                f41 += '</tr></table></div>';
                            }
                            f41 += '</div>' + '<div class="mbsc-cal-week-nrs-c ' + (M61.weekNrClass || '') + '">' + '<div class="mbsc-cal-week-nrs"></div>' + '</div>' + '<div class="mbsc-cal-anim-c ' + (M61.calendarClass || '') + '">' + '<div class="mbsc-cal-anim">';
                            for (Q61 = 0; Q61 < Y61 + 2 * L61; Q61++) {
                                f41 += '<div class="mbsc-cal-slide" aria-hidden="true"></div>';
                            }
                            f41 += '</div></div></div>' + g61 + B61 + '</div></div></div>';
                            k61.calendar = K61(f41);
                        }
                        K61.each(M61.controls, function(y31, f31) {
                            k61[f31] = K61('<div class="mbsc-cal-pnl" id="' + (b71.id + '_dw_pnl_' + y31) + '"></div>').append(K61('<div class="mbsc-cal-pnl-i"></div>').append(k61[f31])).appendTo(a41);
                        });
                        z31 = '<div class="mbsc-cal-tabs"><ul role="tablist">';
                        K61.each(M61.controls, function(b31, l31) {
                            if (k61[l31]) {
                                z31 += '<li role="tab" aria-controls="' + (b71.id + '_dw_pnl_' + b31) + '" class="mbsc-cal-tab ' + (b31 ? '' : v41) + '" data-control="' + l31 + '"><a href="#" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-cal-tab-i ' + (!b31 ? n41 : '') + '">' + M61[l31 + 'Text'] + '</a></li>';
                            }
                        });
                        z31 += '</ul></div>';
                        a41.before(z31);
                        V61 = K61('.mbsc-cal-anim-c', p61);
                        i41 = K61('.mbsc-cal-anim', V61);
                        Z71 = K61('.mbsc-cal-week-nrs', p61);
                        if (s61) {
                            P41 = true;
                            d41 = K61('.mbsc-cal-slide', i41).each(function(q31, H31) {
                                o61.push(K61(H31));
                            });
                            d41.slice(L61, L61 + Y61).addClass('mbsc-cal-slide-a').removeAttr('aria-hidden');
                            for (Q61 = 0; Q61 < n61; Q61++) {
                                H71(o61[Q61], 100 * (Q61 - L61) * w41);
                            }
                            m41(v61, X61);
                            l41 = new F61.classes.ScrollView(V61[0], {
                                axis: O61 ? 'Y' : 'X',
                                easing: '',
                                contSize: 0,
                                snap: 1,
                                maxSnapScroll: L61,
                                moveElement: i41,
                                mousewheel: M61.mousewheel,
                                time: 200,
                                lock: true,
                                stopProp: false,
                                minScroll: -Infinity,
                                maxScroll: Infinity,
                                onAnimationEnd: function(K31) {
                                    var c31 = Math.round(((O61 ? K31.posY : K31.posX) - S61) / J61) * w41;
                                    if (c31) {
                                        N41(v61, X61 - c31, c31 > 0 ? 'prev' : 'next', c31 > 0 ? c31 : -c31);
                                    }
                                }
                            });
                        }
                        D41 = K61('.mbsc-cal-month', p61);
                        A41 = K61('.mbsc-cal-year', p61);
                        R41 = K61('.mbsc-cal-m-c', p61);
                        if (T41) {
                            R41.on(x61, T71);
                            g61 = K61('.mbsc-cal-month-c', p61).on(x61, T71);
                            B61 = K61('.mbsc-cal-year-c', p61).on(x61, T71);
                            k71 = K61('.mbsc-cal-sc-p', p61);
                            S41 = {
                                axis: O61 ? 'Y' : 'X',
                                contSize: 0,
                                snap: 1,
                                maxSnapScroll: 1,
                                rtl: M61.rtl,
                                mousewheel: M61.mousewheel,
                                time: 200,
                                stopProp: false,
                                minScroll: -Infinity,
                                maxScroll: Infinity
                            };
                            G61 = new F61.classes.ScrollView(B61[0], S41);
                            q41 = new F61.classes.ScrollView(g61[0], S41);
                        }
                        if (W61) {
                            p61.addClass('mbsc-cal-liq');
                        } else {
                            K61('.mbsc-cal', p61).width(q71 || 280 * Y61);
                        }
                        if (M61.calendarHeight) {
                            K61('.mbsc-cal-anim-c', p61).height(M61.calendarHeight);
                        }
                        m61.tap(V61, function(a31) {
                            var w31 = K61(a31.target);
                            if (!x41 && !l41.scrolled && M61.readonly !== true) {
                                w31 = w31.closest('.mbsc-cal-day', this);
                                if (w31.hasClass('mbsc-cal-day-v')) {
                                    B71.call(w31[0]);
                                }
                            }
                        });
                        K61('.mbsc-cal-btn', p61).on('touchstart mousedown keydown', I71).on('touchmove', P71).on('touchend touchcancel keyup', i71);
                        K61('.mbsc-cal-tab', p61).on('touchstart click', function(F31) {
                            if (E61(F31, this)) {
                                m61.changeTab(K61(this).attr('data-control'));
                            }
                        });
                        if (T41) {
                            m61.tap(K61('.mbsc-cal-month', p61), function() {
                                if (!B61.hasClass('mbsc-cal-v')) {
                                    Z41(R41);
                                    P41 = R41.hasClass('mbsc-cal-v');
                                }
                                Z41(g61);
                                K41(B61);
                            });
                            m61.tap(K61('.mbsc-cal-year', p61), function() {
                                if (!B61.hasClass('mbsc-cal-v')) {
                                    G61.scroll(b41);
                                }
                                if (!g61.hasClass('mbsc-cal-v')) {
                                    Z41(R41);
                                    P41 = R41.hasClass('mbsc-cal-v');
                                }
                                Z41(B61);
                                K41(g61);
                            });
                            m61.tap(K61('.mbsc-cal-month-s', p61), function() {
                                if (!q41.scrolled && !K61(this).hasClass('mbsc-fr-btn-d')) {
                                    m61.navigate(M61.getDate(v61, K61(this).attr('data-val'), 1));
                                }
                            });
                            m61.tap(K61('.mbsc-cal-year-s', p61), function() {
                                if (!G61.scrolled) {
                                    F41 = M61.getDate(K61(this).attr('data-val'), X61, 1);
                                    m61.navigate(new Date(a61.constrain(F41, e61, I61)));
                                }
                            });
                            m61.tap(B61, function() {
                                if (!G61.scrolled) {
                                    K41(B61);
                                    G41(R41);
                                    P41 = true;
                                }
                            });
                            m61.tap(g61, function() {
                                if (!q41.scrolled) {
                                    K41(g61);
                                    G41(R41);
                                    P41 = true;
                                }
                            });
                        }
                    },
                    onShow: function() {
                        if (s61) {
                            w71(v61, X61);
                        }
                    },
                    onPosition: function(M31) {
                        var A31, d31, Z31, E31, x31, i31, C31 = 0,
                            P31 = 0,
                            U31 = 0,
                            t31 = M31.windowHeight;
                        if (W61) {
                            if (x71) {
                                V61.height('');
                            }
                            a41.height('');
                            i41.width('');
                        }
                        if (J61) {
                            x31 = J61;
                        }
                        if (s61) {
                            J61 = Math.round(Math.round(V61[0][O61 ? 'offsetHeight' : 'offsetWidth']) / Y61);
                        }
                        if (J61) {
                            p61.removeClass('mbsc-cal-m mbsc-cal-l');
                            if (J61 > 1024) {
                                p61.addClass('mbsc-cal-l');
                            } else if (J61 > 640) {
                                p61.addClass('mbsc-cal-m');
                            }
                        }
                        if (U41 && (p41 || W61) || Y41) {
                            K61('.mbsc-cal-pnl', p61).removeClass('mbsc-cal-pnl-h');
                            K61.each(k61, function(m31, Q31) {
                                A31 = Q31[0].offsetWidth;
                                C31 = Math.max(C31, A31);
                                P31 = Math.max(P31, Q31[0].offsetHeight);
                                U31 += A31;
                            });
                            if (U41 || Y41 && U31 > v71(z71)) {
                                d31 = true;
                                j61 = K61('.mbsc-cal-tabs .mbsc-cal-tab-sel', p61).attr('data-control');
                                u41.addClass('mbsc-cal-tabbed');
                            } else {
                                j61 = 'calendar';
                                C31 = '';
                                P31 = '';
                                u41.removeClass('mbsc-cal-tabbed');
                                a41.css({
                                    width: '',
                                    height: ''
                                });
                            }
                        }
                        if (W61 && x71 && s61) {
                            m61._isFullScreen = true;
                            if (d31) {
                                a41.height(k61.calendar[0].offsetHeight);
                            }
                            E31 = u41[0].offsetHeight;
                            if (t31 >= E31) {
                                V61.height(t31 - E31 + V61[0].offsetHeight);
                            }
                            P31 = Math.max(P31, k61.calendar[0].offsetHeight);
                        }
                        if (d31) {
                            a41.css({
                                width: W61 ? '' : C31,
                                height: P31
                            });
                            if (s61) {
                                J61 = Math.round(Math.round(V61[0][O61 ? 'offsetHeight' : 'offsetWidth']) / Y61);
                            }
                        }
                        if (J61) {
                            i41[O61 ? 'height' : 'width'](J61);
                            if (J61 !== x31) {
                                if (c41) {
                                    L41 = M61.maxMonthWidth > K61('.mbsc-cal-btnw-m', p61).width() ? M61.monthNamesShort : M61.monthNames;
                                    for (Q61 = 0; Q61 < Y61; ++Q61) {
                                        K61(D41[Q61]).text(L41[M61.getMonth(M61.getDate(v61, X61 - u61 + Q61, 1))]);
                                    }
                                }
                                if (T41) {
                                    i31 = B61[0][O61 ? 'offsetHeight' : 'offsetWidth'];
                                    K61.extend(G61.settings, {
                                        contSize: i31,
                                        snap: i31,
                                        minScroll: (2 - h41) * i31,
                                        maxScroll: -i31
                                    });
                                    K61.extend(q41.settings, {
                                        contSize: i31,
                                        snap: i31,
                                        minScroll: -i31,
                                        maxScroll: -i31
                                    });
                                    G61.refresh();
                                    q41.refresh();
                                    if (B61.hasClass('mbsc-cal-v')) {
                                        G61.scroll(b41);
                                    }
                                }
                                if (W61 && !p41 && x31) {
                                    Z31 = S61 / x31;
                                    S61 = Z31 * J61;
                                }
                                c71(v61, X61);
                            }
                        } else {
                            J61 = x31;
                        }
                        if (d31) {
                            K61('.mbsc-cal-pnl', p61).addClass('mbsc-cal-pnl-h');
                            k61[j61].removeClass('mbsc-cal-pnl-h');
                        }
                        m61.trigger('onCalResize');
                        p41 = false;
                    },
                    onHide: function() {
                        t41 = [];
                        o61 = [];
                        j61 = null;
                        v61 = null;
                        X61 = null;
                        x41 = true;
                        J61 = 0;
                        if (l41) {
                            l41.destroy();
                        }
                        if (T41 && G61 && q41) {
                            G61.destroy();
                            q41.destroy();
                        }
                    },
                    onValidated: function(L31) {
                        var Y31, X31, p31;
                        X31 = m61.getDate(true);
                        if (W41) {
                            Y31 = 'calendar';
                        } else {
                            for (p31 in m61.order) {
                                if (p31 && m61.order[p31] === L31) {
                                    Y31 = /[mdy]/.test(p31) ? 'date' : 'time';
                                }
                            }
                        }
                        m61.trigger('onSetDate', {
                            date: X31,
                            control: Y31
                        });
                        K71(X31);
                        W41 = false;
                    }
                });
                return N71;
            };
        }(window, document));
        (function(s31, e31, k31) {
            var J31 = R,
                v31 = J31.$,
                u31 = v31.extend,
                o31 = J31.util,
                B31 = o31.datetime,
                O31 = B31.adjustedDate,
                V31 = J31.presets.scroller,
                I31 = {};
            J31.presetShort('calendar');
            V31.calendar = function(n31) {
                function D31() {
                    n31.refresh();
                }

                function q01(C01) {
                    G31 = {};
                    if (C01 && C01.length) {
                        for (g31 = 0; g31 < C01.length; g31++) {
                            G31[h31(C01[g31])] = C01[g31];
                        }
                    }
                }

                function h31(x01) {
                    return O31(x01.getFullYear(), x01.getMonth(), x01.getDate());
                }

                function c01(K01) {
                    if (K01) {
                        if (N01[K01]) {
                            return N01[K01];
                        }
                        var w01 = v31('<div style="background-color:' + K01 + ';"></div>').appendTo('body'),
                            i01 = s31.getComputedStyle ? getComputedStyle(w01[0]) : w01[0].style,
                            a01 = i01.backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, '').split(','),
                            P01 = a01[0] * 0.299 + a01[1] * 0.587 + a01[2] * 0.114,
                            F01 = P01 > 130 ? '#000' : '#fff';
                        w01.remove();
                        N01[K01] = F01;
                        return F01;
                    }
                }
                var W31, R01, H01, g31, T01, l01, z01, N01 = {},
                    b01 = u31({}, n31.settings),
                    r31 = u31(n31.settings, I31, b01),
                    y01 = r31.activeClass || '',
                    j31 = r31.select == 'multiple' || r31.select > 1 || r31.selectType == 'week',
                    f01 = o31.isNumeric(r31.select) ? r31.select : Infinity,
                    S31 = !!r31.events,
                    G31 = {};
                z01 = V31.calbase.call(this, n31);
                W31 = u31({}, z01);
                H01 = r31.firstSelectDay === k31 ? r31.firstDay : r31.firstSelectDay;
                if (j31 && r31.defaultValue && r31.defaultValue.length) {
                    for (g31 = 0; g31 < r31.defaultValue.length; g31++) {
                        G31[h31(r31.defaultValue[g31])] = r31.defaultValue[g31];
                    }
                }
                n31.onGenMonth = function(d01, E01) {
                    T01 = n31.prepareObj(r31.events || r31.marked, d01, E01);
                };
                n31.getDayProps = function(m01) {
                    var t01, p01 = j31 ? G31[m01] !== k31 : k31,
                        A01 = T01[m01] ? T01[m01] : false,
                        U01 = A01 && A01[0] && A01[0].text,
                        Q01 = A01 && A01[0] && A01[0].color,
                        Y01 = S31 && U01 ? c01(Q01) : '',
                        Z01 = '',
                        M01 = '';
                    if (A01) {
                        for (t01 = 0; t01 < A01.length; t01++) {
                            if (A01[t01].icon) {
                                Z01 += '<span class="mbsc-ic mbsc-ic-' + A01[t01].icon + '"' + (A01[t01].text ? '' : A01[t01].color ? ' style="color:' + A01[t01].color + ';"' : '') + '></span>\n';
                            }
                        }
                        M01 = '<div class="mbsc-cal-day-m"><div class="mbsc-cal-day-m-t">';
                        for (t01 = 0; t01 < A01.length; t01++) {
                            M01 += '<div class="mbsc-cal-day-m-c"' + (A01[t01].color ? ' style="background:' + A01[t01].color + ';"' : '') + '></div>';
                        }
                        M01 += '</div></div>';
                    }
                    return {
                        marked: A01,
                        selected: p01,
                        cssClass: A01 ? 'mbsc-cal-day-marked' : '',
                        ariaLabel: S31 ? U01 : '',
                        markup: S31 && U01 ? '<div class="mbsc-cal-day-txt-c"><div class="mbsc-cal-day-txt" title="' + v31('<div>' + U01 + '</div>').text() + '"' + (Q01 ? ' style="background:' + Q01 + ';color:' + Y01 + ';text-shadow:none;"' : '') + '>' + Z01 + U01 + '</div></div>' : S31 && Z01 ? '<div class="mbsc-cal-day-ic-c">' + Z01 + '</div>' : A01 ? M01 : ''
                    };
                };
                n31.addValue = function(X01) {
                    G31[h31(X01)] = X01;
                    D31();
                };
                n31.removeValue = function(L01) {
                    delete G31[h31(L01)];
                    D31();
                };
                n31.setVal = function(v01, u01, o01, J01, k01) {
                    if (j31) {
                        q01(v01);
                        v01 = v01 ? v01[0] : null;
                    }
                    n31._setVal(v01, u01, o01, J01, k01);
                    D31();
                };
                n31.getVal = function(B01) {
                    if (j31) {
                        return o31.objectToArray(G31);
                    }
                    return n31.getDate(B01);
                };
                u31(z01, {
                    highlight: !j31,
                    outerMonthChange: !j31,
                    parseValue: function(V01) {
                        var O01, I01;
                        if (j31 && V01 && typeof V01 === 'string') {
                            G31 = {};
                            V01 = V01.split(',');
                            for (O01 = 0; O01 < V01.length; O01++) {
                                I01 = B31.parseDate(n31.format, V01[O01].replace(/^\s+|\s+$/g, ''), r31);
                                G31[h31(I01)] = I01;
                            }
                            V01 = V01[0];
                        }
                        if (j31 && r31.defaultValue && r31.defaultValue.length) {
                            r31.defaultValue = r31.defaultValue[0];
                        }
                        return W31.parseValue.call(this, V01);
                    },
                    formatValue: function(r01) {
                        var e01, s01 = [];
                        if (j31) {
                            for (e01 in G31) {
                                s01.push(B31.formatDate(n31.format, G31[e01], r31));
                            }
                            return s01.join(', ');
                        }
                        return W31.formatValue.call(this, r01);
                    },
                    onClear: function() {
                        if (j31) {
                            G31 = {};
                            n31.refresh();
                        }
                    },
                    onBeforeShow: function() {
                        if (r31.setOnDayTap === k31 && (!r31.buttons || !r31.buttons.length)) {
                            r31.setOnDayTap = true;
                        }
                        if (r31.setOnDayTap && r31.display != 'inline') {
                            r31.outerMonthChange = false;
                        }
                        if (r31.counter && j31) {
                            r31.headerText = function() {
                                var G01 = 0,
                                    n01 = r31.selectType == 'week' ? 7 : 1;
                                v31.each(G31, function() {
                                    G01++;
                                });
                                G01 = Math.round(G01 / n01);
                                return (G01 > 1 ? r31.selectedPluralText || r31.selectedText : r31.selectedText).replace(/{count}/, G01);
                            };
                        }
                    },
                    onMarkupReady: function(j01) {
                        W31.onMarkupReady.call(this, j01);
                        R01 = v31(j01.target);
                        if (j31) {
                            v31('.mbsc-fr-hdr', R01).attr('aria-live', 'off');
                            l01 = u31({}, G31);
                        }
                        if (S31) {
                            v31('.mbsc-cal', R01).addClass('mbsc-cal-ev');
                        }
                    },
                    onDayChange: function(W01) {
                        var R5y = W01.date,
                            g01 = h31(R5y),
                            T5y = v31(W01.target),
                            z5y = W01.selected;
                        if (j31) {
                            if (r31.selectType == 'week') {
                                var S01, D01, h01 = g01.getDay() - H01;
                                h01 = h01 < 0 ? 7 + h01 : h01;
                                if (r31.select != 'multiple') {
                                    G31 = {};
                                }
                                for (S01 = 0; S01 < 7; S01++) {
                                    D01 = O31(g01.getFullYear(), g01.getMonth(), g01.getDate() - h01 + S01);
                                    if (z5y) {
                                        delete G31[D01];
                                    } else if (o31.objectToArray(G31).length / 7 < f01) {
                                        G31[D01] = D01;
                                    }
                                }
                                D31();
                            } else {
                                var N5y = v31('.mbsc-cal .mbsc-cal-day[data-full="' + T5y.attr('data-full') + '"]', R01);
                                if (z5y) {
                                    N5y.removeClass('mbsc-cal-day-sel').removeAttr('aria-selected').find('.mbsc-cal-day-i').removeClass(y01);
                                    delete G31[g01];
                                } else if (o31.objectToArray(G31).length < f01) {
                                    N5y.addClass('mbsc-cal-day-sel').attr('aria-selected', 'true').find('.mbsc-cal-day-i').addClass(y01);
                                    G31[g01] = g01;
                                }
                            }
                        }
                        if (r31.setOnDayTap && r31.select != 'multiple' && r31.display != 'inline') {
                            n31.needsSlide = false;
                            n31.setDate(R5y);
                            n31.select();
                            return false;
                        }
                    },
                    onCancel: function() {
                        if (!n31.live && j31) {
                            G31 = u31({}, l01);
                        }
                    }
                });
                return z01;
            };
        }(window, document));
        (function(b5y) {
            var l5y = function() {},
                f5y = R,
                y5y = f5y.$;
            f5y.util.addIcon = function(c5y, a5y) {
                var H5y = {},
                    K5y = c5y.parent(),
                    w5y = K5y.find('.mbsc-err-msg'),
                    F5y = c5y.attr('data-icon-align') || 'left',
                    q5y = c5y.attr('data-icon');
                y5y('<span class="mbsc-input-wrap"></span>').insertAfter(c5y).append(c5y);
                if (w5y) {
                    K5y.find('.mbsc-input-wrap').append(w5y);
                }
                if (q5y) {
                    if (q5y.indexOf('{') !== -1) {
                        H5y = JSON.parse(q5y);
                    } else {
                        H5y[F5y] = q5y;
                    }
                }
                if (q5y || a5y) {
                    y5y.extend(H5y, a5y);
                    K5y.addClass((H5y.right ? 'mbsc-ic-right ' : '') + (H5y.left ? ' mbsc-ic-left' : '')).find('.mbsc-input-wrap').append(H5y.left ? '<span class="mbsc-input-ic mbsc-left-ic mbsc-ic mbsc-ic-' + H5y.left + '"></span>' : '').append(H5y.right ? '<span class="mbsc-input-ic mbsc-right-ic mbsc-ic mbsc-ic-' + H5y.right + '"></span>' : '');
                }
            };
            f5y.classes.Progress = function(X5y, u5y, o5y) {
                function M5y(O5y, e5y, I5y, s5y) {
                    O5y = Math.min(A5y, Math.max(O5y, d5y));
                    L5y.css('width', (O5y - d5y) * 100 / (A5y - d5y) + '%');
                    if (I5y === b5y) {
                        I5y = true;
                    }
                    if (s5y === b5y) {
                        s5y = I5y;
                    }
                    if (O5y !== E5y || e5y) {
                        i5y._display(O5y);
                    }
                    if (O5y !== E5y) {
                        E5y = O5y;
                        if (I5y) {
                            P5y.attr('value', E5y);
                        }
                        if (s5y) {
                            P5y.trigger('change');
                        }
                    }
                }

                function U5y(B5y, V5y) {
                    var k5y = P5y.attr(B5y);
                    return k5y === b5y || k5y === '' ? V5y : +k5y;
                }

                function v5y() {
                    var J5y = U5y('value', d5y);
                    if (J5y !== E5y) {
                        M5y(J5y);
                    }
                }
                var Z5y, P5y, C5y, L5y, m5y, p5y, t5y, d5y, A5y, x5y, Y5y, E5y, Q5y, i5y = this;
                f5y.classes.Base.call(this, X5y, u5y, true);
                i5y._onInit = l5y;
                i5y._onDestroy = l5y;
                i5y._display = function(r5y) {
                    Q5y = Y5y && x5y.returnAffix ? Y5y.replace(/\{value\}/, r5y).replace(/\{max\}/, A5y) : r5y;
                    if (m5y) {
                        m5y.html(Q5y);
                    }
                    if (Z5y) {
                        Z5y.html(Q5y);
                    }
                };
                i5y._attachChange = function() {
                    P5y.on('change', v5y);
                };
                i5y._init = function(n5y) {
                    var j5y, g5y, G5y, h5y;
                    x5y = i5y.settings;
                    P5y = y5y(X5y);
                    h5y = P5y.parent().hasClass('mbsc-input-wrap');
                    C5y = i5y._$parent = h5y ? C5y : P5y.parent();
                    d5y = i5y._min = n5y.min === b5y ? U5y('min', x5y.min) : n5y.min;
                    A5y = i5y._max = n5y.max === b5y ? U5y('max', x5y.max) : n5y.max;
                    E5y = U5y('value', d5y);
                    j5y = P5y.attr('data-val') || x5y.val;
                    G5y = P5y.attr('data-step-labels');
                    G5y = G5y ? JSON.parse(G5y) : x5y.stepLabels;
                    Y5y = P5y.attr('data-template') || (A5y == 100 && !x5y.template ? '{value}%' : x5y.template);
                    if (!h5y) {
                        if (i5y._wrap) {
                            f5y.util.addIcon(P5y);
                        }
                        C5y.find('.mbsc-input-wrap').append('<span class="mbsc-progress-cont"><span class="mbsc-progress-track mbsc-progress-anim"><span class="mbsc-progress-bar"></span></span></span>');
                        L5y = i5y._$progress = C5y.find('.mbsc-progress-bar');
                        p5y = i5y._$track = C5y.find('.mbsc-progress-track');
                    } else {
                        if (j5y) {
                            Z5y.remove();
                            C5y.removeClass('mbsc-progress-value-' + (j5y == 'right' ? 'right' : 'left'));
                        }
                        if (G5y) {
                            y5y('.mbsc-progress-step-label', p5y).remove();
                        }
                    }
                    if (t5y) {
                        C5y.removeClass(t5y);
                    }
                    t5y = i5y._css + ' mbsc-progress-w mbsc-control-w mbsc-' + x5y.theme + (x5y.baseTheme ? ' mbsc-' + x5y.baseTheme : '') + (x5y.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
                    C5y.addClass(t5y);
                    P5y.addClass('mbsc-control').attr('min', d5y).attr('max', A5y);
                    if (j5y) {
                        Z5y = y5y('<span class="mbsc-progress-value"></span>');
                        C5y.addClass('mbsc-progress-value-' + (j5y == 'right' ? 'right' : 'left')).find('.mbsc-input-wrap').append(Z5y);
                    }
                    if (G5y) {
                        for (g5y = 0; g5y < G5y.length; ++g5y) {
                            p5y.append('<span class="mbsc-progress-step-label" style="' + (x5y.rtl ? 'right' : 'left') + ': ' + (G5y[g5y] - d5y) * 100 / (A5y - d5y) + '%" >' + G5y[g5y] + '</span>');
                        }
                    }
                    m5y = y5y(P5y.attr('data-target') || x5y.target);
                    i5y._onInit(n5y);
                    if (!h5y) {
                        i5y._attachChange();
                    }
                    i5y.refresh();
                };
                i5y._destroy = function() {
                    i5y._onDestroy();
                    C5y.find('.mbsc-progress-cont').remove();
                    C5y.removeClass(t5y).find('.mbsc-input-wrap').before(P5y).remove();
                    P5y.removeClass('mbsc-control').off('change', v5y);
                };
                i5y.refresh = function() {
                    M5y(U5y('value', d5y), true, false);
                };
                i5y.getVal = function() {
                    return E5y;
                };
                i5y.setVal = function(S5y, D5y, W5y) {
                    M5y(S5y, true, D5y, W5y);
                };
                if (!o5y) {
                    i5y.init(u5y);
                }
            };
            f5y.classes.Progress.prototype = {
                _class: 'progress',
                _css: 'mbsc-progress',
                _hasTheme: true,
                _hasLang: true,
                _wrap: true,
                _defaults: {
                    min: 0,
                    max: 100,
                    returnAffix: true
                }
            };
            f5y.presetShort('progress', 'Progress');
        }());
        (function(f1y) {
            var y1y = function() {},
                z1y = R,
                R1y = z1y.$,
                T1y = z1y.util,
                N1y = T1y.getCoord,
                b1y = T1y.testTouch;
            z1y.classes.Slider = function(o1y, l2y, H2y) {
                function A1y(m2y, p2y, u2y, X2y, o2y, L2y) {
                    var v2y = C1y.eq(p2y),
                        Y2y = v2y.parent();
                    m2y = Math.min(i1y, Math.max(m2y, c1y));
                    if (L2y === f1y) {
                        L2y = u2y;
                    }
                    if (e1y) {
                        if (p2y === 0) {
                            m2y = Math.min(m2y, H1y[1]);
                            Z1y.css({
                                width: F1y(H1y[1]) - F1y(m2y) + '%',
                                left: E1y ? 'auto' : F1y(m2y) + '%',
                                right: E1y ? F1y(m2y) + '%' : 'auto'
                            });
                        } else {
                            m2y = Math.max(m2y, H1y[0]);
                            Z1y.css({
                                width: F1y(m2y) - F1y(H1y[0]) + '%'
                            });
                        }
                    } else if (d1y || !p1y) {
                        Y2y.css({
                            left: E1y ? 'auto' : (X2y || F1y(m2y)) + '%',
                            right: E1y ? (X2y || F1y(m2y)) + '%' : 'auto'
                        });
                    } else {
                        Z1y.css('width', (X2y || F1y(m2y)) + '%');
                    }
                    if (m1y) {
                        f2y.eq(p2y).html(m2y);
                    }
                    if (m2y > c1y) {
                        Y2y.removeClass('mbsc-slider-start');
                    } else if (H1y[p2y] > c1y || o2y) {
                        Y2y.addClass('mbsc-slider-start');
                    }
                    if (!d1y && (H1y[p2y] != m2y || o2y)) {
                        l1y._display(m2y);
                    }
                    if (u2y && H1y[p2y] != m2y) {
                        G1y = true;
                        H1y[p2y] = m2y;
                        l1y._fillValue(m2y, p2y, L2y);
                    }
                    v2y.attr('aria-valuenow', m2y);
                }

                function I1y(M2y, Q2y) {
                    var Z2y = q1y.attr(M2y);
                    return Z2y === f1y || Z2y === '' ? Q2y : Z2y === 'true';
                }

                function F1y(U2y) {
                    return (U2y - c1y) * 100 / (i1y - c1y);
                }

                function b2y(E2y, A2y, t2y) {
                    var d2y = A2y ? Math.min(Math.round(Math.max((E2y - k1y) * 100 / V1y, 0) / u1y / K1y) * K1y * 100 / (i1y - c1y), 100) : Math.max(0, Math.min((E2y - k1y) * 100 / V1y, 100));
                    if (E1y) {
                        d2y = 100 - d2y;
                    }
                    A1y(Math.round((c1y + d2y / u1y) * B1y) / B1y, x1y, t2y, d2y);
                }

                function n1y() {
                    t1y = false;
                    Q1y.removeClass('mbsc-active');
                    R1y(document).off('mousemove', L1y).off('mouseup', v1y);
                }

                function Y1y(C2y) {
                    C2y.preventDefault();
                    clearInterval(X1y);
                    X1y = null;
                }

                function T2y(x2y) {
                    var P2y;
                    if (!o1y.disabled) {
                        switch (x2y.keyCode) {
                            case 38:
                            case 39:
                                P2y = 1;
                                break;
                            case 40:
                            case 37:
                                P2y = -1;
                                break;
                        }
                        if (P2y) {
                            x2y.preventDefault();
                            if (!X1y) {
                                x1y = +R1y(this).attr('data-index');
                                A1y(H1y[x1y] + K1y * P2y, x1y, true);
                                X1y = setInterval(function() {
                                    A1y(H1y[x1y] + K1y * P2y, x1y, true);
                                }, 200);
                            }
                        }
                    }
                }

                function N2y(i2y) {
                    i2y.preventDefault();
                }

                function z2y(F2y) {
                    F2y.stopPropagation();
                }

                function R2y() {
                    var w2y = l1y._readValue(R1y(this)),
                        a2y = +R1y(this).attr('data-index');
                    if (w2y !== H1y[a2y]) {
                        H1y[a2y] = w2y;
                        A1y(w2y, a2y);
                    }
                }

                function W1y() {
                    if (t1y) {
                        n1y();
                    }
                }

                function v1y(K2y) {
                    if (t1y) {
                        K2y.preventDefault();
                        if (!d1y) {
                            P1y.addClass('mbsc-progress-anim');
                        }
                        b2y(M1y, true, true);
                        if (!U1y && !G1y) {
                            T1y.preventClick();
                            l1y._onTap(H1y[x1y]);
                        }
                        n1y();
                    }
                }

                function L1y(c2y) {
                    if (t1y) {
                        M1y = N1y(c2y, 'X');
                        y2y = N1y(c2y, 'Y');
                        j1y = M1y - J1y;
                        S1y = y2y - g1y;
                        if (Math.abs(j1y) > 5 || U1y) {
                            U1y = true;
                            if (Math.abs(s1y - new Date()) > 50) {
                                s1y = new Date();
                                b2y(M1y, w1y.round, D1y);
                            }
                        }
                        if (U1y) {
                            c2y.preventDefault();
                        } else if (Math.abs(S1y) > 7) {
                            n1y(c2y);
                        }
                    }
                }

                function h1y(q2y) {
                    if (b1y(q2y, this) && !t1y && !o1y.disabled) {
                        if (w1y.stopProp) {
                            q2y.stopPropagation();
                        }
                        t1y = true;
                        U1y = false;
                        G1y = false;
                        J1y = N1y(q2y, 'X');
                        g1y = N1y(q2y, 'Y');
                        M1y = J1y;
                        P1y.removeClass('mbsc-progress-anim');
                        O1y = d1y ? R1y('.mbsc-slider-handle', this) : C1y;
                        if (Q1y) {
                            Q1y.removeClass('mbsc-handle-curr');
                        }
                        Q1y = O1y.parent().addClass('mbsc-active mbsc-handle-curr');
                        x1y = +O1y.attr('data-index');
                        V1y = P1y[0].offsetWidth;
                        k1y = P1y[0].getBoundingClientRect().left;
                        if (q2y.type === 'mousedown') {
                            q2y.preventDefault();
                            R1y(document).on('mousemove', L1y).on('mouseup', v1y);
                        }
                    }
                }
                var q1y, O1y, Q1y, C1y, r1y, a1y, Z1y, f2y, P1y, t1y, G1y, j1y, S1y, k1y, M1y, y2y, x1y, p1y, m1y, e1y, E1y, D1y, i1y, c1y, U1y, d1y, K1y, w1y, u1y, J1y, g1y, B1y, X1y, V1y, H1y, l1y = this,
                    s1y = new Date();
                z1y.classes.Progress.call(this, o1y, l2y, true);
                l1y._onTap = y1y;
                l1y.__onInit = y1y;
                l1y._readValue = function(J2y) {
                    return +J2y.val();
                };
                l1y._fillValue = function(B2y, k2y, V2y) {
                    q1y.eq(k2y).val(B2y);
                    if (V2y) {
                        q1y.eq(k2y).trigger('change');
                    }
                };
                l1y._attachChange = function() {
                    q1y.on(w1y.changeEvent, R2y);
                };
                l1y._onInit = function(s2y) {
                    var O2y, I2y, e2y;
                    if (a1y) {
                        a1y.removeClass('mbsc-slider-has-tooltip');
                        if (K1y != 1) {
                            R1y('.mbsc-slider-step', P1y).remove();
                        }
                    }
                    l1y.__onInit();
                    a1y = l1y._$parent;
                    P1y = l1y._$track;
                    Z1y = l1y._$progress;
                    q1y = a1y.find('input');
                    w1y = l1y.settings;
                    c1y = l1y._min;
                    i1y = l1y._max;
                    K1y = s2y.step === f1y ? +q1y.attr('step') || w1y.step : s2y.step;
                    D1y = I1y('data-live', w1y.live);
                    m1y = I1y('data-tooltip', w1y.tooltip);
                    p1y = I1y('data-highlight', w1y.highlight) && q1y.length < 3;
                    B1y = K1y % 1 !== 0 ? 100 / (+(K1y % 1).toFixed(2) * 100) : 1;
                    u1y = 100 / (i1y - c1y) || 100;
                    d1y = q1y.length > 1;
                    e1y = p1y && q1y.length == 2;
                    E1y = w1y.rtl;
                    H1y = [];
                    if (m1y) {
                        a1y.addClass('mbsc-slider-has-tooltip');
                    }
                    if (K1y != 1) {
                        I2y = (i1y - c1y) / K1y;
                        for (O2y = 0; O2y <= I2y; ++O2y) {
                            P1y.append('<span class="mbsc-slider-step" style="' + (E1y ? 'right' : 'left') + ':' + 100 / I2y * O2y + '%"></span>');
                        }
                    }
                    if (C1y) {
                        e2y = true;
                        C1y.parent().remove();
                    }
                    q1y.each(function(r2y) {
                        H1y[r2y] = l1y._readValue(R1y(this));
                        R1y(this).attr('data-index', r2y);
                        if (this.type == 'range') {
                            R1y(this).attr('min', c1y).attr('max', i1y).attr('step', K1y);
                        }
                        if (w1y.handle) {
                            (p1y ? Z1y : P1y).append('<span class="mbsc-slider-handle-cont' + (e1y && !r2y ? ' mbsc-slider-handle-left' : '') + '">' + '<span tabindex="0" class="mbsc-slider-handle" aria-valuemin="' + c1y + '" aria-valuemax="' + i1y + '" data-index="' + r2y + '"></span>' + (m1y ? '<span class="mbsc-slider-tooltip"></span>' : '') + '</span>');
                        }
                    });
                    C1y = a1y.find('.mbsc-slider-handle');
                    f2y = a1y.find('.mbsc-slider-tooltip');
                    r1y = a1y.find(d1y ? '.mbsc-slider-handle-cont' : '.mbsc-progress-cont');
                    C1y.on('keydown', T2y).on('keyup', Y1y).on('blur', Y1y);
                    r1y.on('touchstart mousedown', h1y).on('touchmove', L1y).on('touchend touchcancel', v1y).on('pointercancel', W1y);
                    if (!e2y) {
                        q1y.on('click', z2y);
                        a1y.on('click', N2y);
                    }
                };
                l1y._onDestroy = function() {
                    a1y.off('click', N2y);
                    q1y.off(w1y.changeEvent, R2y).off('click', z2y);
                    C1y.off('keydown', T2y).off('keyup', Y1y).off('blur', Y1y);
                    r1y.off('touchstart mousedown', h1y).off('touchmove', L1y).off('touchend', v1y).off('touchcancel pointercancel', W1y);
                };
                l1y.refresh = function() {
                    q1y.each(function(G2y) {
                        A1y(l1y._readValue(R1y(this)), G2y, true, false, true, false);
                    });
                };
                l1y.getVal = function() {
                    return d1y ? H1y.slice(0) : H1y[0];
                };
                l1y.setVal = l1y._setVal = function(n2y, g2y, j2y) {
                    if (!R1y.isArray(n2y)) {
                        n2y = [n2y];
                    }
                    R1y.each(n2y, function(h2y, S2y) {
                        A1y(S2y, h2y, true, false, true, j2y);
                    });
                };
                if (!H2y) {
                    l1y.init(l2y);
                }
            };
            z1y.classes.Slider.prototype = {
                _class: 'progress',
                _css: 'mbsc-progress mbsc-slider',
                _hasTheme: true,
                _hasLang: true,
                _wrap: true,
                _defaults: {
                    changeEvent: 'change',
                    stopProp: true,
                    min: 0,
                    max: 100,
                    step: 1,
                    live: true,
                    highlight: true,
                    handle: true,
                    round: true,
                    returnAffix: true
                }
            };
            z1y.presetShort('slider', 'Slider');
        }());
        (function(W2y) {
            function b6y(l4y) {
                return H6y(N6y(l4y));
            }

            function c6y(b4y) {
                return f6y(l6y(b4y));
            }

            function w6y(y4y) {
                return f6y(a6y(y4y));
            }

            function K6y(f4y) {
                return q6y(N6y(f4y));
            }

            function a6y(T4y) {
                var S6y, D6y, W6y, N4y, g6y, R4y, j6y = T4y.h,
                    z4y = T4y.s,
                    h6y = T4y.l;
                if (!isFinite(j6y)) {
                    j6y = 0;
                }
                if (!isFinite(z4y)) {
                    z4y = 0;
                }
                if (!isFinite(h6y)) {
                    h6y = 0;
                }
                j6y /= 60;
                if (j6y < 0) {
                    j6y = 6 - -j6y % 6;
                }
                j6y %= 6;
                z4y = Math.max(0, Math.min(1, z4y / 100));
                h6y = Math.max(0, Math.min(1, h6y / 100));
                g6y = (1 - Math.abs(2 * h6y - 1)) * z4y;
                R4y = g6y * (1 - Math.abs(j6y % 2 - 1));
                if (j6y < 1) {
                    S6y = g6y;
                    D6y = R4y;
                    W6y = 0;
                } else if (j6y < 2) {
                    S6y = R4y;
                    D6y = g6y;
                    W6y = 0;
                } else if (j6y < 3) {
                    S6y = 0;
                    D6y = g6y;
                    W6y = R4y;
                } else if (j6y < 4) {
                    S6y = 0;
                    D6y = R4y;
                    W6y = g6y;
                } else if (j6y < 5) {
                    S6y = R4y;
                    D6y = 0;
                    W6y = g6y;
                } else {
                    S6y = g6y;
                    D6y = 0;
                    W6y = R4y;
                }
                N4y = h6y - g6y / 2;
                return {
                    r: Math.round((S6y + N4y) * 255),
                    g: Math.round((D6y + N4y) * 255),
                    b: Math.round((W6y + N4y) * 255),
                    toString: function() {
                        return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
                    }
                };
            }

            function q6y(G6y) {
                var I6y = G6y.r / 255,
                    B6y = G6y.g / 255,
                    V6y = G6y.b / 255,
                    k6y = Math.max(I6y, B6y, V6y),
                    e6y = Math.min(I6y, B6y, V6y),
                    r6y = (k6y + e6y) / 2,
                    s6y, n6y;
                if (k6y == e6y) {
                    s6y = n6y = 0;
                } else {
                    var O6y = k6y - e6y;
                    n6y = r6y > 0.5 ? O6y / (2 - k6y - e6y) : O6y / (k6y + e6y);
                    switch (k6y) {
                        case I6y:
                            s6y = (B6y - V6y) / O6y + (B6y < V6y ? 6 : 0);
                            break;
                        case B6y:
                            s6y = (V6y - I6y) / O6y + 2;
                            break;
                        case V6y:
                            s6y = (I6y - B6y) / O6y + 4;
                            break;
                    }
                    s6y /= 6;
                }
                return {
                    h: Math.round(s6y * 360),
                    s: Math.round(n6y * 100),
                    l: Math.round(r6y * 100),
                    toString: function() {
                        return 'hsl(' + this.h + ',' + this.s + '%,' + this.l + '%)';
                    }
                };
            }

            function H6y(Y6y) {
                var X6y = 0,
                    u6y, o6y, J6y = Math.min(Y6y.r, Y6y.g, Y6y.b),
                    L6y = Math.max(Y6y.r, Y6y.g, Y6y.b),
                    v6y = L6y - J6y;
                o6y = L6y;
                u6y = L6y ? 255 * v6y / L6y : 0;
                if (u6y) {
                    if (Y6y.r == L6y) {
                        X6y = (Y6y.g - Y6y.b) / v6y;
                    } else if (Y6y.g == L6y) {
                        X6y = 2 + (Y6y.b - Y6y.r) / v6y;
                    } else {
                        X6y = 4 + (Y6y.r - Y6y.g) / v6y;
                    }
                } else {
                    X6y = -1;
                }
                X6y *= 60;
                if (X6y < 0) {
                    X6y += 360;
                }
                u6y *= 100 / 255;
                o6y *= 100 / 255;
                return {
                    h: X6y,
                    s: u6y,
                    v: o6y,
                    toString: function() {
                        return 'hsv(' + Math.round(this.h) + ',' + Math.round(this.s) + '%,' + Math.round(this.v) + '%)';
                    }
                };
            }

            function l6y(p6y) {
                var t6y, U6y, Z6y, A6y = p6y.h,
                    m6y = p6y.s * 255 / 100,
                    Q6y = p6y.v * 255 / 100;
                if (m6y === 0) {
                    t6y = U6y = Z6y = Q6y;
                } else {
                    var E6y = Q6y,
                        d6y = (255 - m6y) * Q6y / 255,
                        M6y = (E6y - d6y) * (A6y % 60) / 60;
                    if (A6y == 360) {
                        A6y = 0;
                    }
                    if (A6y < 60) {
                        t6y = E6y;
                        Z6y = d6y;
                        U6y = d6y + M6y;
                    } else if (A6y < 120) {
                        U6y = E6y;
                        Z6y = d6y;
                        t6y = E6y - M6y;
                    } else if (A6y < 180) {
                        U6y = E6y;
                        t6y = d6y;
                        Z6y = d6y + M6y;
                    } else if (A6y < 240) {
                        Z6y = E6y;
                        t6y = d6y;
                        U6y = E6y - M6y;
                    } else if (A6y < 300) {
                        Z6y = E6y;
                        U6y = d6y;
                        t6y = d6y + M6y;
                    } else if (A6y < 360) {
                        t6y = E6y;
                        U6y = d6y;
                        Z6y = E6y - M6y;
                    } else {
                        t6y = U6y = Z6y = 0;
                    }
                }
                return {
                    r: t6y,
                    g: U6y,
                    b: Z6y,
                    toString: function() {
                        return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
                    }
                };
            }

            function N6y(C6y) {
                C6y = parseInt(C6y.indexOf('#') > -1 ? C6y.substring(1) : C6y, 16);
                return {
                    r: C6y >> 16,
                    g: (C6y & 0x00FF00) >> 8,
                    b: C6y & 0x0000FF,
                    toString: function() {
                        return 'rgb(' + this.r + ',' + this.g + ',' + this.b + ')';
                    }
                };
            }

            function f6y(i6y) {
                var F6y = [Math.round(i6y.r).toString(16), Math.round(i6y.g).toString(16), Math.round(i6y.b).toString(16)];
                D2y.each(F6y, function(x6y, P6y) {
                    if (P6y.length == 1) {
                        F6y[x6y] = '0' + P6y;
                    }
                });
                return '#' + F6y.join('');
            }
            var z6y = R,
                D2y = z6y.$,
                T6y = z6y.util,
                y6y = function() {},
                R6y = z6y.classes;
            R6y.Color = function(v4y, e4y, y7y) {
                function G4y(y8y, N8y) {
                    var T8y = false,
                        f8y = D2y('.mbsc-color-selected', N8y);
                    i4y = D2y(y8y.target);
                    if (i4y.hasClass('mbsc-color-clear-item')) {
                        d4y = '';
                        H4y.clear();
                        return;
                    }
                    if ((x4y || S4y > +f8y.length || i4y.hasClass('mbsc-color-selected')) && R.CsDrb) {
                        K4y = i4y.attr('data-index');
                        if (F4y) {
                            a4y = q4y[K4y].previewInd !== W2y ? q4y[K4y].previewInd : W4y();
                            T8y = U4y && i4y.hasClass('mbsc-color-selected') && !i4y.parent().hasClass('mbsc-color-active');
                            if (C4y.length > 6) {
                                M4y.scroll(C4y.eq(a4y));
                            }
                        }
                        d4y = q4y[K4y].changedColor || q4y[K4y].color;
                        if (x4y) {
                            f8y.removeClass('mbsc-color-selected');
                            H4y._tempValue = d4y;
                            if (d4y) {
                                i4y.toggleClass('mbsc-color-selected');
                            }
                            k4y(i4y, N8y);
                        } else {
                            k4y(i4y, N8y);
                            if (!T8y) {
                                o4y(!q4y[K4y].selected, K4y, a4y, d4y, true, true);
                            }
                        }
                        O4y(K4y, N8y);
                        if (H4y.live) {
                            H4y._fillValue();
                            Y4y('onSet', {
                                value: H4y._value
                            });
                        }
                        Y4y('onItemTap', {
                            target: y8y.target,
                            value: d4y,
                            selected: q4y[K4y].selected,
                            index: K4y
                        });
                    }
                }

                function r4y(R8y, z8y) {
                    var W7y = D2y(R8y.target).index();
                    K4y = w4y[W7y].colorIndex;
                    i4y = Z4y.eq(K4y);
                    a4y = W7y;
                    O4y(K4y, z8y);
                    Q4y.scroll(i4y, 250);
                    Y4y('onPreviewItemTap', {
                        target: R8y.target,
                        value: w4y[W7y].color,
                        index: W7y
                    });
                }

                function f7y() {
                    var S7y, D7y = [];
                    for (S7y = 0; S7y < q4y.length; ++S7y) {
                        if (q4y[S7y].selected) {
                            D7y.push(q4y[S7y]);
                        }
                    }
                    return D7y;
                }

                function O4y(g7y, h7y) {
                    if (g7y !== W2y && (x4y || q4y[g7y].selected)) {
                        K4y = g7y;
                        d4y = q4y[g7y].changedColor || q4y[g7y].color;
                        i4y = Z4y.eq(g7y);
                        if (U4y) {
                            k4y(Z4y.eq(g7y), h7y || '');
                            m4y = u4y(q4y[g7y].color, 'hsl');
                            m4y.l = u4y(d4y, 'hsl').l;
                            j4y(q4y[g7y].color);
                            X4y.setVal(100 - m4y.l, false, false);
                        }
                    } else if (U4y) {
                        j4y();
                    }
                }

                function o4y(I7y, s7y, e7y, r7y, n7y, j7y) {
                    if (F4y && n7y) {
                        w4y[e7y].colorIndex = I7y ? s7y : W2y;
                        w4y[e7y].color = I7y ? r7y : W2y;
                        if (C4y) {
                            var G7y = C4y.eq(e7y);
                            G7y.removeClass('mbsc-color-preview-item-empty').css({
                                background: I7y ? r7y : 'transparent'
                            });
                            if (!I7y) {
                                G7y.addClass('mbsc-color-preview-item-empty').parent().removeClass('mbsc-color-active');
                            }
                        }
                    }
                    if (j7y) {
                        if (I7y) {
                            H4y._tempValue.splice(e7y, 0, r7y);
                        } else {
                            H4y._tempValue.splice(H4y._tempValue.indexOf(r7y), 1);
                        }
                    }
                    if (Z4y) {
                        if (I7y) {
                            Z4y.eq(s7y).addClass('mbsc-color-selected');
                        } else {
                            Z4y.eq(s7y).removeClass('mbsc-color-selected').parent().removeClass('mbsc-color-active');
                        }
                    }
                    q4y[s7y].previewInd = I7y ? e7y : W2y;
                    q4y[s7y].selected = I7y;
                }

                function h4y(v7y, V7y) {
                    var X7y, u7y, L7y = [],
                        k7y = 0,
                        o7y = D2y.map(q4y, function(O7y) {
                            return O7y.changedColor || O7y.color;
                        });
                    if (x4y) {
                        v7y = D2y.isArray(v7y) ? v7y[0] : v7y;
                        u7y = o7y.indexOf(v7y);
                        if (u7y > -1) {
                            L7y.push(u7y);
                        }
                        if (v7y && !L7y.length) {
                            var J7y = +D2y('.mbsc-color-input-item', E4y).attr('data-color');
                            if (!isNaN(J7y)) {
                                L7y.push(J7y);
                            }
                            K4y = J7y;
                        }
                    } else if (v7y) {
                        if (F4y && U4y) {
                            for (var B7y in P4y) {
                                if (P4y[B7y].colorIndex !== W2y) {
                                    L7y.push(+P4y[B7y].colorIndex);
                                }
                            }
                        } else {
                            for (X7y = 0; X7y < v7y.length; ++X7y) {
                                u7y = o7y.indexOf(v7y[X7y]);
                                if (u7y > -1) {
                                    L7y.push(u7y);
                                    o7y[u7y] = 'temp' + X7y;
                                }
                            }
                        }
                    }
                    for (X7y = 0; X7y < L7y.length; ++X7y) {
                        o4y(true, L7y[X7y], k7y++, q4y[L7y[X7y]].changedColor || q4y[L7y[X7y]].color, true);
                    }
                    for (X7y = 0; X7y < q4y.length; ++X7y) {
                        if (L7y.indexOf(X7y) == -1) {
                            o4y(false, X7y, W2y, q4y[X7y].changedColor || q4y[X7y].color, false);
                        }
                    }
                    if (F4y) {
                        for (X7y = k7y; X7y < c4y.select; ++X7y) {
                            w4y[X7y] = {};
                            if (C4y) {
                                C4y.eq(X7y).addClass('mbsc-color-preview-item-empty').css({
                                    background: 'transparent'
                                });
                            }
                        }
                    }
                    P4y = D2y.extend(true, {}, w4y);
                    if (V7y !== false) {
                        z7y();
                    }
                }

                function k4y(p7y, Y7y) {
                    D2y('.mbsc-color-active', Y7y).removeClass('mbsc-color-active');
                    if (U4y) {
                        p7y.parent().addClass('mbsc-color-active');
                        if (F4y && p7y) {
                            if (a4y !== W2y) {
                                C4y.eq(a4y).parent().addClass('mbsc-color-active');
                            }
                        }
                    }
                }

                function W4y() {
                    var m7y;
                    for (m7y = 0; m7y < c4y.select; ++m7y) {
                        if (w4y[m7y].colorIndex === W2y) {
                            return m7y;
                        }
                    }
                }

                function R7y(M7y, Q7y) {
                    switch (Q7y) {
                        case 'rgb':
                            return N6y(M7y);
                        case 'hsl':
                            return K6y(M7y);
                        case 'hsv':
                            return b6y(M7y);
                        default:
                            return M7y;
                    }
                }

                function u4y(t7y, Z7y) {
                    var U7y, A7y = t7y.match(/\d+/gmi);
                    switch (true) {
                        case t7y.indexOf('rgb') > -1:
                            U7y = f6y({
                                r: A7y[0],
                                g: A7y[1],
                                b: A7y[2]
                            });
                            break;
                        case t7y.indexOf('hsl') > -1:
                            U7y = w6y({
                                h: A7y[0],
                                s: A7y[1],
                                l: A7y[2]
                            });
                            break;
                        case t7y.indexOf('hsv') > -1:
                            U7y = c6y({
                                h: A7y[0],
                                s: A7y[1],
                                v: A7y[2]
                            });
                            break;
                        case t7y.indexOf('#') > -1:
                            U7y = t7y;
                            break;
                    }
                    return R7y(U7y, Z7y || c4y.format);
                }

                function z7y() {
                    if (L4y) {
                        var x7y, C7y = '';
                        E4y.empty();
                        if (H4y._value) {
                            if (x4y) {
                                C7y += n4y(H4y._value, K4y);
                            } else {
                                for (x7y = 0; x7y < H4y._value.length; ++x7y) {
                                    C7y += n4y(H4y._value[x7y], Object.keys(w4y).length && w4y[x7y].colorIndex ? w4y[x7y].colorIndex : V4y(H4y._value[x7y]));
                                }
                            }
                            E4y.append(C7y);
                            H4y.tap(D2y('.mbsc-color-input-item', E4y), function(d7y) {
                                if (D2y(d7y.target).hasClass('mbsc-color-input-item-close')) {
                                    var E7y = D2y(this).index();
                                    d7y.stopPropagation();
                                    d7y.preventDefault();
                                    if (K4y === W2y) {
                                        K4y = D2y(d7y.target).parent().attr('data-color');
                                    }
                                    if (F4y) {
                                        a4y = q4y[K4y].previewInd;
                                        C4y.eq(a4y).parent().removeClass('mbsc-color-active');
                                        P4y[E7y] = {};
                                        w4y[E7y] = {};
                                    }
                                    H4y._value.splice(E7y, 1);
                                    H4y.setVal(H4y._value, true, true);
                                } else if (U4y && c4y.display !== 'inline') {
                                    N7y = true;
                                    K4y = D2y(d7y.target).attr('data-color');
                                    if (isNaN(K4y)) {
                                        K4y = V4y(K4y);
                                    }
                                    if (K4y) {
                                        q4y[K4y].selected = true;
                                        a4y = q4y[K4y].previewInd;
                                        setTimeout(function() {
                                            Q4y.scroll(Z4y.eq(K4y), 400);
                                            if (F4y) {
                                                M4y.scroll(C4y.eq(a4y), 400);
                                            }
                                        }, 200);
                                    }
                                }
                            });
                        }
                    }
                }

                function V4y(i7y) {
                    if (Object.keys(w4y).length && !isNaN(i7y)) {
                        return i7y;
                    }
                    for (var P7y in q4y) {
                        if (i7y == q4y[P7y].color || i7y == q4y[P7y].changedColor) {
                            return P7y;
                        }
                    }
                }

                function j4y(F7y) {
                    g4y[0].style.background = F7y ? T6y.prefix + 'linear-gradient(left, ' + (c4y.rtl ? '#000000' : '#FFFFFF') + ' 0%, ' + F7y + ' 50%, ' + (c4y.rtl ? '#FFFFFF' : '#000000') + ' 100%)' : '';
                }

                function n4y(a7y, w7y) {
                    w7y = w7y !== W2y ? w7y : V4y(a7y);
                    return '<div class="mbsc-color-input-item" data-color="' + (w7y !== W2y ? w7y : a7y) + '" style="background: ' + a7y + ';">' + (x4y ? '' : '<div class="mbsc-color-input-item-close mbsc-ic mbsc-ic-material-close"></div>') + '</div>';
                }

                function B4y(H7y, l7y, c7y, K7y, q7y) {
                    if (!q7y) {
                        H4y._value = H4y._hasValue ? H4y._tempValue.slice(0) : null;
                        for (var b7y = 0; b7y < q4y.length; ++b7y) {
                            if (q4y[b7y].tempChangedColor && H4y._value && H4y._value.indexOf(q4y[b7y].tempChangedColor) != -1) {
                                q4y[b7y].changedColor = q4y[b7y].tempChangedColor;
                            }
                            delete q4y[b7y].tempChangedColor;
                        }
                    }
                    if (H7y) {
                        if (H4y._isInput) {
                            A4y.val(H4y._hasValue ? H4y._tempValue : '');
                        }
                        Y4y('onFill', {
                            valueText: H4y._hasValue ? H4y._tempValue : '',
                            change: l7y
                        });
                        if (l7y) {
                            P4y = D2y.extend(true, {}, w4y);
                            H4y._preventChange = true;
                            A4y.trigger('change');
                            h4y(H4y._value);
                        }
                    }
                }
                var c4y, D4y, q4y, T7y, Y4y, Q4y, M4y, p4y, d4y, m4y, N7y, t4y, F4y, g4y, U4y, s4y, X4y, K4y, L4y, x4y, S4y, I4y, E4y, Z4y, C4y, i4y, J4y, H4y = this,
                    A4y = D2y(v4y),
                    a4y = 0,
                    P4y = {},
                    w4y = {};
                R6y.Frame.call(this, v4y, e4y, true);
                H4y.setVal = H4y._setVal = function(b8y, l8y, H8y, q8y) {
                    H4y._hasValue = b8y !== null && b8y !== W2y;
                    H4y._tempValue = D2y.isArray(b8y) ? b8y : [b8y];
                    B4y(l8y, true, H8y === W2y ? l8y : H8y, q8y);
                };
                H4y.getVal = H4y._getVal = function(c8y) {
                    return H4y._hasValue || c8y ? I4y ? f7y() : H4y[c8y ? '_tempValue' : '_value'] : null;
                };
                H4y._readValue = function() {
                    var K8y = A4y.val() || '';
                    H4y._hasValue = false;
                    if (K8y.length !== 0 && K8y !== '') {
                        H4y._hasValue = true;
                    }
                    if (H4y._hasValue) {
                        H4y._tempValue = x4y ? K8y : c4y.format == 'hex' ? K8y.split(',') : K8y.match(/[a-z]{3}\((\d+\.?\d{0,}?),\s*([\d.]+)%{0,},\s*([\d.]+)%{0,}\)/gmi);
                        B4y(true);
                    } else {
                        H4y._tempValue = [];
                    }
                    h4y(H4y._tempValue, H4y._hasValue);
                };
                H4y._fillValue = function() {
                    H4y._hasValue = true;
                    B4y(true, true, 0, true);
                };
                H4y._generateContent = function() {
                    var w8y, a8y, P8y, F8y = p4y ? 1 : 0;
                    s4y = t4y ? Math.ceil((q4y.length + F8y) / c4y.rows) : c4y.rows;
                    a8y = '<div class="mbsc-color-scroll-cont mbsc-w-p ' + (t4y ? '' : 'mbsc-color-vertical') + '"><div class="mbsc-color-cont">' + (t4y ? '<div class="mbsc-color-row">' : '');
                    for (w8y = 0; w8y < q4y.length; ++w8y) {
                        P8y = q4y[w8y].changedColor || q4y[w8y].color;
                        if (p4y && w8y === 0) {
                            a8y += '<div class="mbsc-color-item-c"><div tabindex="0" class="mbsc-color-clear-item mbsc-btn-e mbsc-color-selected"><div class="mbsc-color-clear-cross"></div></div></div>';
                        }
                        if (w8y !== 0 && (w8y + F8y) % s4y === 0) {
                            a8y += t4y ? '</div><div class="mbsc-color-row">' : '';
                        }
                        a8y += '<div class="mbsc-color-item-c"><div tabindex="0" data-index="' + w8y + '" class="mbsc-color-item mbsc-btn-e mbsc-ic mbsc-ic-material-check mbsc-color-btn-e ' + (q4y[w8y].selected ? 'mbsc-color-selected' : '') + '"  style="background:' + P8y + '"></div>' + '</div>';
                    }
                    a8y += '</div></div>' + (t4y ? '</div>' : '');
                    if (U4y) {
                        a8y += '<div class="mbsc-color-slider-cont"><input class="mbsc-color-slider" type="range" data-highlight="false" value="50" min="0" max="100"/></div>';
                    }
                    if (F4y) {
                        a8y += '<div class="mbsc-color-preview-cont"><div class="mbsc-color-refine-preview">';
                        for (var i8y in P4y) {
                            a8y += '<div class="mbsc-color-preview-item-c mbsc-btn-e mbsc-color-btn-e" tabindex="0"><div class="mbsc-color-preview-item ' + (P4y[i8y].color ? '' : 'mbsc-color-preview-item-empty') + '" style="background: ' + (P4y[i8y].color || 'initial') + ';"></div></div>';
                        }
                        a8y += '</div></div>';
                    }
                    return a8y;
                };
                H4y._position = function(d8y) {
                    var x8y, C8y;
                    if (!t4y) {
                        x8y = d8y.find('.mbsc-color-cont');
                        C8y = Math.ceil(x8y.find('.mbsc-color-item-c')[0].offsetWidth);
                        x8y.width(Math.min(Math.floor(d8y.find('.mbsc-fr-c').width() / C8y), Math.round(q4y.length / c4y.rows)) * C8y + 1);
                    }
                    if (Q4y) {
                        Q4y.refresh();
                    }
                    if (M4y) {
                        M4y.refresh();
                    }
                };
                H4y._markupInserted = function(E8y) {
                    if (!t4y) {
                        E8y.find('.mbsc-color-scroll-cont').css('max-height', E8y.find('.mbsc-color-item-c')[0].offsetHeight * c4y.rows);
                    }
                    Q4y = new R6y.ScrollView(E8y.find('.mbsc-color-scroll-cont')[0], {
                        axis: t4y ? 'X' : 'Y',
                        rtl: c4y.rtl,
                        elastic: 60,
                        stopProp: false,
                        mousewheel: c4y.mousewheel,
                        onBtnTap: function(A8y) {
                            G4y(A8y, E8y);
                        }
                    });
                };
                H4y._attachEvents = function(t8y) {
                    var U8y;
                    Z4y = D2y('.mbsc-color-item', t8y);
                    t8y.on('keydown', '.mbsc-color-btn-e', function(Z8y) {
                        Z8y.stopPropagation();
                        if (Z8y.keyCode == 32) {
                            if (Z8y.target.classList.contains('mbsc-color-item')) {
                                G4y(Z8y, t8y);
                            } else {
                                r4y(Z8y, t8y);
                            }
                        }
                    });
                    if (F4y) {
                        C4y = D2y('.mbsc-color-preview-item', t8y);
                    }
                    if (U4y) {
                        t8y.addClass('mbsc-color-refine');
                        J4y = D2y('.mbsc-color-slider', t8y);
                        X4y = new R6y.Slider(J4y[0], {
                            theme: c4y.theme,
                            rtl: c4y.rtl
                        });
                        g4y = t8y.find('.mbsc-progress-track');
                        if (K4y && H4y._value) {
                            O4y(K4y, t8y);
                        }
                        J4y.on('change', function() {
                            if (K4y !== W2y && (x4y || q4y[K4y].selected)) {
                                m4y.l = 100 - this.value;
                                U8y = u4y(m4y.toString()).toString();
                                if (x4y) {
                                    H4y._tempValue = U8y;
                                } else {
                                    H4y._tempValue[a4y !== W2y ? a4y : H4y._tempValue.length] = U8y;
                                }
                                q4y[K4y].tempChangedColor = U8y;
                                Z4y.eq(K4y).css('background', U8y);
                                if (F4y) {
                                    w4y[a4y].color = U8y;
                                    C4y.eq(a4y).removeClass('mbsc-color-preview-item-empty').css({
                                        'background': U8y
                                    });
                                }
                                if (H4y.live) {
                                    T6y.throttle(H4y._fillValue());
                                }
                            }
                        });
                    }
                    if (F4y) {
                        M4y = new R6y.ScrollView(t8y.find('.mbsc-color-preview-cont')[0], {
                            axis: 'X',
                            rtl: c4y.rtl,
                            mousewheel: c4y.mousewheel,
                            onBtnTap: function(M8y) {
                                r4y(M8y, t8y);
                            }
                        });
                    }
                };
                H4y._detachEvents = function() {
                    Q4y.destroy();
                    if (X4y) {
                        X4y.destroy();
                    }
                    if (M4y) {
                        M4y.destroy();
                    }
                };
                H4y.__processSettings = function() {
                    var Q8y, m8y;
                    c4y = H4y.settings;
                    T7y = c4y.format;
                    Y4y = H4y.trigger;
                    t4y = c4y.navigation == 'horizontal';
                    H4y._value = [];
                    H4y._tempValue = [];
                    x4y = c4y.select == 'single';
                    p4y = c4y.clear !== W2y ? c4y.clear : x4y;
                    m8y = c4y.data || [];
                    if (!m8y.length) {
                        switch (c4y.format) {
                            case 'rgb':
                                m8y = ["rgb(255,235,60)", "rgb(255,153,0)", "rgb(244,68,55)", "rgb(234,30,99)", "rgb(156,38,176)", "rgb(104,58,183)", "rgb(63,81,181)", "rgb(33,150,243)", "rgb(0,151,136)", "rgb(75,175,79)", "rgb(126,93,78)", "rgb(158,158,158)"];
                                if (p4y) {
                                    m8y.splice(10, 0, 'rgb(83, 71, 65)');
                                }
                                break;
                            case 'hsl':
                                m8y = ["hsl(54,100%,62%)", "hsl(36,100%,50%)", "hsl(4,90%,59%)", "hsl(340,83%,52%)", "hsl(291,64%,42%)", "hsl(262,52%,47%)", "hsl(231,48%,48%)", "hsl(207,90%,54%)", "hsl(174,100%,30%)", "hsl(122,40%,49%)", "hsl(19,24%,40%)", "hsl(0,0%,62%)"];
                                if (p4y) {
                                    m8y.splice(10, 0, 'hsl(20, 12%, 29%)');
                                }
                                break;
                            default:
                                m8y = ['#ffeb3c', '#ff9900', '#f44437', '#ea1e63', '#9c26b0', '#683ab7', '#3f51b5', '#2196f3', '#009788', '#4baf4f', '#7e5d4e', '#9e9e9e'];
                                if (p4y) {
                                    m8y.splice(10, 0, '#534741');
                                }
                        }
                    }
                    U4y = c4y.mode == 'refine';
                    F4y = !isNaN(c4y.select);
                    S4y = isNaN(c4y.select) ? x4y ? 2 : m8y.length : c4y.select;
                    I4y = D2y.isPlainObject(m8y[0]);
                    if (F4y && !Object.keys(P4y).length) {
                        for (Q8y = 0; Q8y < c4y.select; ++Q8y) {
                            P4y[Q8y] = {};
                            w4y[Q8y] = {};
                        }
                    }
                    if (!q4y) {
                        q4y = m8y.slice(0);
                        for (Q8y = 0; Q8y < q4y.length; ++Q8y) {
                            if (!D2y.isPlainObject(m8y[Q8y])) {
                                m8y[Q8y] = m8y[Q8y].toLowerCase();
                                q4y[Q8y] = {
                                    key: Q8y,
                                    name: m8y[Q8y],
                                    color: m8y[Q8y]
                                };
                            } else {
                                q4y[Q8y].color = m8y[Q8y].color;
                            }
                        }
                    }
                    D4y = c4y.defaultValue || q4y[0].color;
                    d4y = D4y;
                    m4y = u4y(d4y, 'hsl');
                    L4y = c4y.enhance && A4y.is('input');
                    if (L4y) {
                        if (A4y.hasClass('mbsc-color-input-hdn')) {
                            E4y = A4y.prev();
                        } else {
                            E4y = D2y('<div ' + (v4y.placeholder ? 'data-placeholder="' + v4y.placeholder + '"' : '') + ' class="mbsc-control mbsc-color-input mbsc-control-ev ' + (c4y.inputClass || '') + '" readonly ></div>');
                            E4y.insertBefore(A4y);
                            A4y.addClass('mbsc-color-input-hdn').attr('tabindex', -1);
                        }
                        c4y.anchor = E4y;
                        H4y.attachShow(E4y);
                    }
                };
                H4y.__init = function() {
                    c4y.cssClass = (c4y.cssClass || '') + ' mbsc-color';
                };
                H4y.__destroy = function() {
                    if (L4y) {
                        A4y.removeClass('mbsc-color-input-hdn');
                        E4y.remove();
                    }
                };
                if (!y7y) {
                    H4y.init(e4y);
                }
            };
            R6y.Color.prototype = {
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _class: 'color',
                _defaults: D2y.extend({}, R6y.Frame.prototype._defaults, {
                    headerText: false,
                    validate: y6y,
                    parseValue: y6y,
                    enhance: true,
                    rows: 2,
                    select: 'single',
                    format: 'hex',
                    navigation: 'horizontal'
                })
            };
            z6y.themes.color = z6y.themes.frame;
            z6y.presetShort('color', 'Color', false);
            T6y.color = {
                hsv2hex: c6y,
                hsv2rgb: l6y,
                rgb2hsv: H6y,
                rgb2hex: f6y,
                rgb2hsl: q6y,
                hex2rgb: N6y,
                hex2hsv: b6y,
                hex2hsl: K6y
            };
        }());
        (function() {
            R.$.each(['date', 'time', 'datetime'], function(Y8y, p8y) {
                R.presetShort(p8y);
            });
        }());
        (function(O8y, I8y, J8y) {
            var v8y = R,
                X8y = v8y.$,
                L8y = X8y.extend,
                B8y = v8y.util,
                u8y = B8y.datetime,
                k8y = u8y.adjustedDate,
                o8y = v8y.presets.scroller,
                V8y = {
                    labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs'],
                    eventText: 'event',
                    eventsText: 'events'
                };
            v8y.presetShort('eventcalendar');
            o8y.eventcalendar = function(s8y) {
                function x9y(l3y) {
                    return k8y(l3y.getFullYear(), l3y.getMonth(), l3y.getDate());
                }

                function b9y() {
                    D8y();
                    s8y.redraw();
                }

                function D8y() {
                    if (r8y) {
                        r8y.removeClass('mbsc-cal-events-v');
                    }
                    if (n8y) {
                        n8y.removeClass(q9y).find('.mbsc-cal-day-i').removeClass(H9y);
                        if (n8y.attr('data-hl')) {
                            n8y.removeAttr('data-hl').addClass(T9y);
                        }
                    }
                    f9y = false;
                }

                function F9y(N3y, z3y) {
                    var j9y = S8y[N3y];
                    if (j9y) {
                        var D9y, h9y, R3y, g9y, W9y, T3y, S9y = '<ul class="mbsc-cal-event-list">';
                        C9y = 0;
                        n8y = z3y;
                        z3y.addClass(q9y).find('.mbsc-cal-day-i').addClass(H9y);
                        if (z3y.hasClass(T9y)) {
                            z3y.attr('data-hl', 'true').removeClass(T9y);
                        }
                        a9y(j9y);
                        X8y.each(j9y, function(y3y, f3y) {
                            g9y = f3y.d || f3y.start;
                            W9y = f3y.start && f3y.end && f3y.start.toDateString() !== f3y.end.toDateString();
                            R3y = f3y.color;
                            T3y = i9y(R3y);
                            D9y = '';
                            h9y = '';
                            if (g9y.getTime) {
                                D9y = u8y.formatDate((W9y ? 'MM d yy ' : '') + e8y.timeFormat, g9y);
                            }
                            if (f3y.end) {
                                h9y = u8y.formatDate((W9y ? 'MM d yy ' : '') + e8y.timeFormat, f3y.end);
                            }
                            S9y += '<li role="button" aria-label="' + f3y.text + (D9y ? ', ' + e8y.fromText + ' ' + D9y : '') + (h9y ? ', ' + e8y.toText + ' ' + h9y : '') + '" class="mbsc-cal-event">' + '<div class="mbsc-cal-event-color" style="' + (R3y ? 'background:' + R3y + ';' : '') + '"></div>' + '<div class="mbsc-cal-event-text">' + (g9y.getTime && !W9y ? '<div class="mbsc-cal-event-time">' + u8y.formatDate(e8y.timeFormat, g9y) + '</div>' : '') + f3y.text + '</div>' + (f3y.start && f3y.end ? '<div class="mbsc-cal-event-dur">' + P9y(f3y.end - f3y.start) + '</div>' : '') + '</li>';
                        });
                        S9y += '</ul>';
                        l9y.html(S9y);
                        s8y.trigger('onEventBubbleShow', {
                            target: n8y[0],
                            eventList: r8y[0]
                        });
                        w9y(n8y);
                        s8y.tap(X8y('.mbsc-cal-event', l9y), function(b3y) {
                            if (!j8y.scrolled) {
                                s8y.trigger('onEventSelect', {
                                    domEvent: b3y,
                                    event: j9y[X8y(this).index()],
                                    date: N3y
                                });
                            }
                        });
                        f9y = true;
                    }
                }

                function w9y(O9y) {
                    var e9y, r9y = X8y('.mbsc-cal-c', g8y)[0].offsetHeight,
                        G9y = O9y[0].offsetHeight,
                        n9y = O9y[0].offsetWidth,
                        s9y = O9y.offset().top - X8y('.mbsc-cal-c', g8y).offset().top,
                        I9y = O9y.closest('.mbsc-cal-row').index() < 2;
                    e9y = r8y.addClass('mbsc-cal-events-t').css({
                        top: I9y ? s9y + G9y : '0',
                        bottom: I9y ? '0' : r9y - s9y
                    }).addClass('mbsc-cal-events-v').height();
                    r8y.css(I9y ? 'bottom' : 'top', 'auto').removeClass('mbsc-cal-events-t');
                    N9y.css('max-height', e9y);
                    j8y.refresh();
                    j8y.scroll(0);
                    if (I9y) {
                        r8y.addClass('mbsc-cal-events-b');
                    } else {
                        r8y.removeClass('mbsc-cal-events-b');
                    }
                    X8y('.mbsc-cal-events-arr', r8y).css('left', O9y.offset().left - r8y.offset().left + n9y / 2);
                }

                function a9y(v9y) {
                    return v9y.sort(function(u9y, o9y) {
                        var J9y = u9y.d || u9y.start,
                            k9y = o9y.d || o9y.start,
                            B9y = !J9y.getTime ? 0 : u9y.start && u9y.end && u9y.start.toDateString() !== u9y.end.toDateString() ? 1 : J9y.getTime(),
                            V9y = !k9y.getTime ? 0 : o9y.start && o9y.end && o9y.start.toDateString() !== o9y.end.toDateString() ? 1 : k9y.getTime();
                        return B9y - V9y;
                    });
                }

                function P9y(L9y) {
                    var M9y = e8y.labelsShort,
                        m9y = Math.abs(L9y) / 1000,
                        p9y = m9y / 60,
                        Y9y = p9y / 60,
                        Q9y = Y9y / 24,
                        X9y = Q9y / 365;
                    return m9y < 45 && Math.round(m9y) + ' ' + M9y[5].toLowerCase() || p9y < 45 && Math.round(p9y) + ' ' + M9y[4].toLowerCase() || Y9y < 24 && Math.round(Y9y) + ' ' + M9y[3].toLowerCase() || Q9y < 30 && Math.round(Q9y) + ' ' + M9y[2].toLowerCase() || Q9y < 365 && Math.round(Q9y / 30) + ' ' + M9y[1].toLowerCase() || Math.round(X9y) + ' ' + M9y[0].toLowerCase();
                }

                function i9y(d9y) {
                    if (d9y) {
                        if (R9y[d9y]) {
                            return R9y[d9y];
                        }
                        var E9y = X8y('<div style="background-color:' + d9y + ';"></div>').appendTo('body'),
                            U9y = O8y.getComputedStyle ? getComputedStyle(E9y[0]) : E9y[0].style,
                            A9y = U9y.backgroundColor.replace(/rgb|rgba|\(|\)|\s/g, '').split(','),
                            Z9y = A9y[0] * 0.299 + A9y[1] * 0.587 + A9y[2] * 0.114,
                            t9y = Z9y > 130 ? '#000' : '#fff';
                        E9y.remove();
                        R9y[d9y] = t9y;
                        return t9y;
                    }
                }
                var c9y, g8y, r8y, n8y, S8y, j8y, N9y, l9y, f9y, C9y, y9y, W8y, R9y = {},
                    K9y = L8y({}, s8y.settings),
                    e8y = L8y(s8y.settings, V8y, K9y),
                    q9y = 'mbsc-cal-day-sel mbsc-cal-day-ev',
                    T9y = 'mbsc-cal-day-hl',
                    H9y = e8y.activeClass || '',
                    h8y = e8y.showEventCount,
                    z9y = 0,
                    G8y = L8y(true, [], e8y.data);
                y9y = o8y.calbase.call(this, s8y);
                c9y = L8y({}, y9y);
                X8y.each(G8y, function(q3y, H3y) {
                    if (H3y._id === J8y) {
                        H3y._id = z9y++;
                    }
                });
                s8y.onGenMonth = function(c3y, K3y) {
                    S8y = s8y.prepareObj(G8y, c3y, K3y);
                };
                s8y.getDayProps = function(x3y) {
                    var a3y, w3y = S8y[x3y] ? S8y[x3y] : false,
                        F3y = w3y ? S8y[x3y].length + ' ' + (S8y[x3y].length > 1 ? e8y.eventsText : e8y.eventText) : 0,
                        C3y = w3y && w3y[0] && w3y[0].color,
                        d3y = h8y && F3y ? i9y(C3y) : '',
                        i3y = '',
                        P3y = '';
                    if (w3y) {
                        for (a3y = 0; a3y < w3y.length; a3y++) {
                            if (w3y[a3y].icon) {
                                i3y += '<span class="mbsc-ic mbsc-ic-' + w3y[a3y].icon + '"' + (w3y[a3y].text ? '' : w3y[a3y].color ? ' style="color:' + w3y[a3y].color + ';"' : '') + '></span>\n';
                            }
                        }
                        P3y = '<div class="mbsc-cal-day-m"><div class="mbsc-cal-day-m-t">';
                        for (a3y = 0; a3y < w3y.length; a3y++) {
                            P3y += '<div class="mbsc-cal-day-m-c"' + (w3y[a3y].color ? ' style="background:' + w3y[a3y].color + ';"' : '') + '></div>';
                        }
                        P3y += '</div></div>';
                    }
                    return {
                        marked: w3y,
                        selected: false,
                        cssClass: w3y ? 'mbsc-cal-day-marked' : '',
                        ariaLabel: h8y ? F3y : '',
                        markup: h8y && F3y ? '<div class="mbsc-cal-day-txt-c"><div class="mbsc-cal-day-txt" title="' + X8y('<div>' + F3y + '</div>').text() + '"' + (C3y ? ' style="background:' + C3y + ';color:' + d3y + ';text-shadow:none;"' : '') + '>' + i3y + F3y + '</div></div>' : h8y && i3y ? '<div class="mbsc-cal-day-ic-c">' + i3y + '</div>' : w3y ? P3y : ''
                    };
                };
                s8y.addEvent = function(E3y) {
                    var A3y = [];
                    E3y = L8y(true, [], X8y.isArray(E3y) ? E3y : [E3y]);
                    X8y.each(E3y, function(U3y, t3y) {
                        if (t3y._id === J8y) {
                            t3y._id = z9y++;
                        }
                        G8y.push(t3y);
                        A3y.push(t3y._id);
                    });
                    b9y();
                    return A3y;
                };
                s8y.removeEvent = function(Z3y) {
                    Z3y = X8y.isArray(Z3y) ? Z3y : [Z3y];
                    X8y.each(Z3y, function(Q3y, M3y) {
                        X8y.each(G8y, function(m3y, p3y) {
                            if (p3y._id === M3y) {
                                G8y.splice(m3y, 1);
                                return false;
                            }
                        });
                    });
                    b9y();
                };
                s8y.getEvents = function(Y3y) {
                    var X3y;
                    if (Y3y) {
                        Y3y.setHours(0, 0, 0, 0);
                        X3y = s8y.prepareObj(G8y, Y3y.getFullYear(), Y3y.getMonth());
                        return X3y[Y3y] ? a9y(X3y[Y3y]) : [];
                    }
                    return L8y(true, [], G8y);
                };
                s8y.setEvents = function(v3y) {
                    var L3y = [];
                    G8y = L8y(true, [], v3y);
                    X8y.each(G8y, function(o3y, u3y) {
                        if (u3y._id === J8y) {
                            u3y._id = z9y++;
                        }
                        L3y.push(u3y._id);
                    });
                    b9y();
                    return L3y;
                };
                L8y(y9y, {
                    highlight: false,
                    outerMonthChange: false,
                    headerText: false,
                    buttons: e8y.display !== 'inline' ? ['close'] : e8y.buttons,
                    onMarkupReady: function(J3y) {
                        c9y.onMarkupReady.call(this, J3y);
                        g8y = X8y(J3y.target);
                        if (h8y) {
                            X8y('.mbsc-cal', g8y).addClass('mbsc-cal-ev');
                        }
                        g8y.addClass('mbsc-cal-em');
                        r8y = X8y('<div class="mbsc-cal-events ' + (e8y.eventBubbleClass || '') + '"><div class="mbsc-cal-events-arr"></div><div class="mbsc-cal-events-i"><div class="mbsc-cal-events-sc"></div></div></div>').appendTo(X8y('.mbsc-cal-c', g8y));
                        N9y = X8y('.mbsc-cal-events-i', r8y);
                        l9y = X8y('.mbsc-cal-events-sc', r8y);
                        j8y = new v8y.classes.ScrollView(N9y[0]);
                        f9y = false;
                        s8y.tap(N9y, function() {
                            if (!j8y.scrolled) {
                                D8y();
                            }
                        });
                    },
                    onMonthChange: function() {
                        D8y();
                    },
                    onSelectShow: function() {
                        D8y();
                    },
                    onMonthLoaded: function() {
                        if (W8y) {
                            F9y(W8y.d, X8y('.mbsc-cal-day-v[data-full="' + W8y.full + '"]:not(.mbsc-cal-day-diff)', g8y));
                            W8y = false;
                        }
                    },
                    onDayChange: function(V3y) {
                        var O3y = V3y.date,
                            B3y = x9y(O3y),
                            k3y = X8y(V3y.target);
                        D8y();
                        if (!k3y.hasClass('mbsc-cal-day-ev')) {
                            setTimeout(function() {
                                if (s8y.changing) {
                                    W8y = {
                                        d: B3y,
                                        full: k3y.attr('data-full')
                                    };
                                } else {
                                    F9y(B3y, k3y);
                                }
                            }, 10);
                        }
                        return false;
                    },
                    onCalResize: function() {
                        if (f9y) {
                            w9y(n8y);
                        }
                    },
                    onHide: function() {
                        c9y.onHide.call(s8y);
                        if (j8y) {
                            j8y.destroy();
                        }
                    }
                });
                return y9y;
            };
        }(window, document));
        (function(e3y, r3y) {
            var I3y = R,
                s3y = I3y.$;
            I3y.classes.Page = function(h3y, S3y) {
                var n3y = '',
                    g3y = s3y(h3y),
                    j3y = this,
                    G3y = j3y.settings;
                I3y.classes.Base.call(this, h3y, S3y, true);
                j3y._init = function() {
                    var R0y = G3y.context,
                        D3y = s3y(R0y),
                        z0y = D3y.find('.mbsc-ms-top .mbsc-ms'),
                        N0y = D3y.find('.mbsc-ms-bottom .mbsc-ms'),
                        W3y = {};
                    if (R0y == 'body') {
                        s3y('body,html').addClass('mbsc-page-ctx');
                    } else {
                        D3y.addClass('mbsc-page-ctx');
                    }
                    if (n3y) {
                        g3y.removeClass(n3y);
                    }
                    if (z0y.length) {
                        W3y.paddingTop = z0y[0].offsetHeight;
                    }
                    if (N0y.length) {
                        W3y.paddingBottom = N0y[0].offsetHeight;
                    }
                    n3y = 'mbsc-page mbsc-' + G3y.theme + (G3y.baseTheme ? ' mbsc-' + G3y.baseTheme : '') + (G3y.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
                    g3y.addClass(n3y).css(W3y);
                };
                j3y._destroy = function() {
                    g3y.removeClass(n3y);
                };
                G3y = j3y.settings;
                j3y.init(S3y);
            };
            I3y.classes.Page.prototype = {
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _class: 'page',
                _defaults: {
                    context: 'body'
                }
            };
            I3y.themes.page.mobiscroll = {};
            I3y.presetShort('page', 'Page');
            s3y(function() {
                var T0y = '[mbsc-page]';
                s3y(T0y).each(function() {
                    new I3y.classes.Page(this);
                });
                s3y(e3y).on('mbsc-enhance', function(f0y, y0y) {
                    if (s3y(f0y.target).is(T0y)) {
                        new I3y.classes.Page(f0y.target, y0y);
                    } else {
                        s3y(T0y, f0y.target).each(function() {
                            new I3y.classes.Page(this, y0y);
                        });
                    }
                });
            });
        }(document));
        (function(c0y, q0y) {
            var w0y, i0y = function() {},
                l0y = R,
                b0y = l0y.$,
                a0y = l0y.platform,
                K0y = l0y.util,
                H0y = K0y.getCoord,
                F0y = K0y.testTouch;
            if (a0y.name == 'android' && a0y.majorVersion < 5) {
                c0y.addEventListener('change', function(P0y) {
                    if (l0y.tapped && P0y.target.type == 'checkbox' && !P0y.target.mbscChange) {
                        P0y.stopPropagation();
                        P0y.preventDefault();
                    }
                    delete P0y.target.mbscChange;
                }, true);
            }
            l0y.classes.Form = function(m0y, p0y) {
                function t0y(j0y) {
                    return !!(j0y.id && l0y.instances[j0y.id]);
                }

                function Q0y() {
                    clearTimeout(Z0y);
                    Z0y = setTimeout(function() {
                        b0y('textarea.mbsc-control', C0y).each(function() {
                            Y0y(this);
                        });
                    }, 100);
                }

                function Y0y(s0y) {
                    var e0y, r0y, G0y, n0y = b0y(s0y).attr('rows') || 6;
                    if (s0y.offsetHeight) {
                        s0y.style.height = '';
                        G0y = s0y.scrollHeight - s0y.offsetHeight;
                        e0y = s0y.offsetHeight + (G0y > 0 ? G0y : 0);
                        r0y = Math.round(e0y / 24);
                        if (r0y > n0y) {
                            s0y.scrollTop = e0y;
                            e0y = 24 * n0y + (e0y - r0y * 24);
                            b0y(s0y).addClass('mbsc-textarea-scroll');
                        } else {
                            b0y(s0y).removeClass('mbsc-textarea-scroll');
                        }
                        if (e0y) {
                            s0y.style.height = e0y + 'px';
                        }
                    }
                }

                function X0y() {
                    var V0y = this;
                    if (!b0y(V0y).hasClass('mbsc-textarea-scroll')) {
                        var O0y = V0y.scrollHeight - V0y.offsetHeight,
                            I0y = V0y.offsetHeight + O0y;
                        V0y.scrollTop = 0;
                        V0y.style.height = I0y + 'px';
                    }
                }

                function M0y(L0y) {
                    var J0y = {},
                        v0y = L0y[0],
                        B0y = L0y.parent(),
                        k0y = L0y.attr('data-password-toggle'),
                        u0y = L0y.attr('data-icon-show') || 'eye',
                        o0y = L0y.attr('data-icon-hide') || 'eye-blocked';
                    if (k0y) {
                        J0y.right = v0y.type == 'password' ? u0y : o0y;
                    }
                    K0y.addIcon(L0y, J0y);
                    if (k0y) {
                        d0y.tap(B0y.find('.mbsc-right-ic').addClass('mbsc-input-toggle'), function() {
                            if (v0y.type == "text") {
                                v0y.type = "password";
                                b0y(this).addClass('mbsc-ic-' + u0y).removeClass('mbsc-ic-' + o0y);
                            } else {
                                v0y.type = "text";
                                b0y(this).removeClass('mbsc-ic-' + u0y).addClass('mbsc-ic-' + o0y);
                            }
                        });
                    }
                }
                var x0y, Z0y, U0y, A0y = '',
                    C0y = b0y(m0y),
                    E0y = [],
                    d0y = this;
                l0y.classes.Base.call(this, m0y, p0y, true);
                d0y.refresh = function(g0y) {
                    b0y('input,select,textarea,progress,button', C0y).each(function() {
                        function q59() {
                            b0y('input', D0y).val(S0y.selectedIndex != -1 ? S0y.options[S0y.selectedIndex].text : '');
                        }
                        var N59, T59, f59, R59, H59, l59, S0y = this,
                            h0y = b0y(S0y),
                            D0y = h0y.parent(),
                            y59 = h0y.attr('data-role'),
                            W0y = h0y.attr('type') || S0y.nodeName.toLowerCase();
                        if (h0y.attr('data-enhance') != 'false' && R.CsDrb) {
                            if (/(switch|range|segmented|stepper)/.test(y59)) {
                                W0y = y59;
                            }
                            if (h0y.hasClass('mbsc-control')) {
                                if (/(switch|range|progress)/.test(W0y) && t0y(S0y) && !g0y) {
                                    l0y.instances[S0y.id].option({
                                        theme: x0y.theme,
                                        lang: x0y.lang,
                                        rtl: x0y.rtl,
                                        onText: x0y.onText,
                                        offText: x0y.offText,
                                        stopProp: x0y.stopProp
                                    });
                                }
                            } else {
                                if (h0y.next().hasClass('mbsc-fr')) {
                                    N59 = h0y.next();
                                }
                                if (W0y != 'button' && W0y != 'submit' && W0y != 'segmented') {
                                    D0y.find('label').addClass('mbsc-label');
                                    D0y.contents().filter(function() {
                                        return this.nodeType == 3 && this.nodeValue && /\S/.test(this.nodeValue);
                                    }).each(function() {
                                        b0y('<span class="mbsc-label"></span>').insertAfter(this).append(this);
                                    });
                                }
                                switch (W0y) {
                                    case 'button':
                                    case 'submit':
                                        f59 = h0y.attr('data-icon');
                                        h0y.addClass('mbsc-btn');
                                        if (f59) {
                                            h0y.prepend('<span class="mbsc-btn-ic mbsc-ic mbsc-ic-' + f59 + '"></span>');
                                            if (h0y.text() === "") {
                                                h0y.addClass('mbsc-btn-icon-only');
                                            }
                                        }
                                        break;
                                    case 'switch':
                                        if (!t0y(S0y)) {
                                            E0y.push(new l0y.classes.Switch(S0y, {
                                                theme: x0y.theme,
                                                lang: x0y.lang,
                                                rtl: x0y.rtl,
                                                onText: x0y.onText,
                                                offText: x0y.offText,
                                                stopProp: x0y.stopProp
                                            }));
                                        }
                                        break;
                                    case 'checkbox':
                                        D0y.prepend(h0y).addClass('mbsc-checkbox mbsc-control-w');
                                        h0y.after('<span class="mbsc-checkbox-box"></span>');
                                        break;
                                    case 'range':
                                        if (!D0y.hasClass('mbsc-slider') && !t0y(S0y)) {
                                            E0y.push(new l0y.classes.Slider(S0y, {
                                                theme: x0y.theme,
                                                lang: x0y.lang,
                                                rtl: x0y.rtl,
                                                stopProp: x0y.stopProp
                                            }));
                                        }
                                        break;
                                    case 'progress':
                                        if (!t0y(S0y)) {
                                            E0y.push(new l0y.classes.Progress(S0y, {
                                                theme: x0y.theme,
                                                lang: x0y.lang,
                                                rtl: x0y.rtl
                                            }));
                                        }
                                        break;
                                    case 'radio':
                                        D0y.addClass('mbsc-radio mbsc-control-w');
                                        h0y.after('<span class="mbsc-radio-box"><span></span></span>');
                                        break;
                                    case 'select':
                                    case 'select-one':
                                    case 'select-multiple':
                                        if (h0y.prev().is('input.mbsc-control')) {
                                            T59 = h0y.prev();
                                        } else {
                                            T59 = b0y('<input tabindex="-1" type="text" class="mbsc-control mbsc-control-ev" readonly>');
                                        }
                                        M0y(h0y);
                                        D0y.addClass('mbsc-input mbsc-select mbsc-control-w' + (N59 ? ' mbsc-select-inline' : ''));
                                        h0y.after(T59);
                                        T59.after('<span class="mbsc-select-ic mbsc-ic mbsc-ic-arrow-down5"></span>');
                                        break;
                                    case 'textarea':
                                        M0y(h0y);
                                        D0y.addClass('mbsc-input mbsc-textarea mbsc-control-w');
                                        break;
                                    case 'segmented':
                                        var z59, b59;
                                        if (!h0y.parent().hasClass('mbsc-segmented-item')) {
                                            b59 = b0y('<div class="mbsc-segmented"></div>');
                                            D0y.after(b59);
                                            b0y('input[name="' + h0y.attr('name') + '"]', C0y).each(function(K59, c59) {
                                                z59 = b0y(c59).parent().addClass('mbsc-segmented-item');
                                                b0y('<span class="mbsc-segmented-content">' + (b0y(c59).attr('data-icon') ? ' <span class="mbsc-ic mbsc-ic-' + b0y(c59).attr('data-icon') + '"></span> ' : '') + '</span>').append(z59.contents()).appendTo(z59);
                                                z59.prepend(c59);
                                                b59.append(z59);
                                            });
                                        }
                                        break;
                                    case 'stepper':
                                        if (!t0y(S0y)) {
                                            E0y.push(new l0y.classes.Stepper(S0y, {
                                                form: d0y
                                            }));
                                        }
                                        break;
                                    case 'hidden':
                                        return;
                                    default:
                                        M0y(h0y);
                                        D0y.addClass('mbsc-input mbsc-control-w');
                                        break;
                                }
                                h0y.addClass('mbsc-control');
                                if (N59) {
                                    N59.insertAfter(D0y);
                                }
                            }
                            if (!h0y.hasClass('mbsc-control-ev')) {
                                if (/select/.test(W0y) && !h0y.hasClass('mbsc-comp')) {
                                    h0y.on('change.mbsc-form', q59);
                                    q59();
                                }
                                if (W0y == 'textarea') {
                                    h0y.on('keydown.mbsc-form input.mbsc-form', function() {
                                        clearTimeout(Z0y);
                                        Z0y = setTimeout(function() {
                                            Y0y(S0y);
                                        }, 100);
                                    }).on('scroll.mbsc-form', X0y);
                                }
                                h0y.addClass('mbsc-control-ev').on('touchstart.mbsc-form mousedown.mbsc-form', function(w59) {
                                    if (F0y(w59, this)) {
                                        H59 = H0y(w59, 'X');
                                        l59 = H0y(w59, 'Y');
                                        if (w59.type == 'touchstart') {
                                            C0y.removeClass('mbsc-no-touch');
                                        }
                                        if (w0y) {
                                            w0y.removeClass('mbsc-active');
                                        }
                                        if (!S0y.disabled) {
                                            R59 = true;
                                            w0y = b0y(this);
                                            b0y(this).addClass('mbsc-active');
                                            U0y('onControlActivate', {
                                                target: this,
                                                domEvent: w59
                                            });
                                        }
                                    }
                                }).on('touchmove.mbsc-form mousemove.mbsc-form', function(a59) {
                                    if (R59 && Math.abs(H0y(a59, 'X') - H59) > 9 || Math.abs(H0y(a59, 'Y') - l59) > 9) {
                                        h0y.removeClass('mbsc-active');
                                        U0y('onControlDeactivate', {
                                            target: h0y[0],
                                            domEvent: a59
                                        });
                                        R59 = false;
                                    }
                                }).on('touchend.mbsc-form touchcancel.mbsc-form mouseleave.mbsc-form mouseup.mbsc-form', function(F59) {
                                    if (R59 && x0y.tap && F59.type == 'touchend' && !S0y.readOnly) {
                                        S0y.focus();
                                        if (/(button|submit|checkbox|switch|radio)/.test(W0y)) {
                                            F59.preventDefault();
                                        }
                                        if (!/select/.test(W0y)) {
                                            var i59 = (F59.originalEvent || F59).changedTouches[0],
                                                P59 = c0y.createEvent('MouseEvents');
                                            P59.initMouseEvent('click', true, true, window, 1, i59.screenX, i59.screenY, i59.clientX, i59.clientY, false, false, false, false, 0, null);
                                            P59.tap = true;
                                            S0y.mbscChange = true;
                                            S0y.dispatchEvent(P59);
                                            K0y.preventClick();
                                        }
                                    }
                                    if (R59) {
                                        setTimeout(function() {
                                            h0y.removeClass('mbsc-active');
                                            U0y('onControlDeactivate', {
                                                target: h0y[0],
                                                domEvent: F59
                                            });
                                        }, 100);
                                    }
                                    R59 = false;
                                    w0y = null;
                                });
                            }
                        }
                    });
                    if (!g0y) {
                        Q0y();
                    }
                };
                d0y._init = function() {
                    if (!l0y.themes.form[x0y.theme]) {
                        x0y.theme = 'mobiscroll';
                    }
                    if (!C0y.hasClass('mbsc-form')) {
                        C0y.on('touchstart', i0y).show();
                        b0y(window).on('resize orientationchange', Q0y);
                    }
                    if (A0y) {
                        C0y.removeClass(A0y);
                    }
                    A0y = 'mbsc-form mbsc-no-touch mbsc-' + x0y.theme + (x0y.baseTheme ? ' mbsc-' + x0y.baseTheme : '') + (x0y.rtl ? ' mbsc-rtl' : ' mbsc-ltr');
                    C0y.addClass(A0y);
                    d0y.refresh();
                };
                d0y._destroy = function() {
                    var x59;
                    C0y.removeClass(A0y).off('touchstart', i0y);
                    b0y(window).off('resize orientationchange', Q0y);
                    b0y('.mbsc-control', C0y).off('.mbsc-form').removeClass('mbsc-control-ev');
                    for (x59 = 0; x59 < E0y.length; x59++) {
                        E0y[x59].destroy();
                    }
                };
                x0y = d0y.settings;
                U0y = d0y.trigger;
                d0y.init(p0y);
            };
            l0y.classes.Form.prototype = {
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _class: 'form',
                _defaults: {
                    tap: true,
                    stopProp: true,
                    lang: 'en'
                }
            };
            l0y.themes.form.mobiscroll = {};
            l0y.presetShort('form', 'Form');
            l0y.classes.Stepper = function(Q59, B59) {
                function e59(P19, x19) {
                    var i19 = d59.attr(P19);
                    return i19 === q0y || i19 === '' ? x19 : +i19;
                }

                function r59(a19, F19) {
                    clearInterval(p59);
                    clearTimeout(p59);
                    if (!u59 && a19) {
                        L59();
                    }
                    U59 = false;
                    u59 = false;
                    m59.removeClass('mbsc-active');
                    if (Y59) {
                        setTimeout(function() {
                            Y59.trigger('onControlDeactivate', {
                                target: m59[0],
                                domEvent: F19
                            });
                        }, 100);
                    }
                }

                function z19(w19) {
                    if (!U59) {
                        U59 = true;
                        u59 = false;
                        S59 = H0y(w19, 'X');
                        G59 = H0y(w19, 'Y');
                        clearInterval(p59);
                        clearTimeout(p59);
                        p59 = setTimeout(function() {
                            L59();
                            p59 = setInterval(function() {
                                L59();
                            }, 150);
                        }, 300);
                    }
                }

                function L59(K19, q19, c19) {
                    V59 = C59;
                    if (q19 === q0y) {
                        q19 = true;
                    }
                    if (c19 === q0y) {
                        c19 = q19;
                    }
                    if (K19 !== q0y) {
                        C59 = Math.min(A59, Math.max(Math.round(K19 / E59) * E59, t59));
                    } else {
                        C59 = Math.min(A59, Math.max(C59 + (m59.hasClass('mbsc-stepper-minus') ? -E59 : E59), t59));
                    }
                    u59 = true;
                    s59.removeClass('mbsc-step-disabled');
                    if (q19) {
                        d59.val(C59);
                    }
                    if (C59 == t59) {
                        I59.addClass('mbsc-step-disabled');
                    } else if (C59 == A59) {
                        k59.addClass('mbsc-step-disabled');
                    }
                    if (C59 !== V59 && c19) {
                        d59.trigger('change');
                    }
                }

                function W59() {
                    var H19;
                    if (!Q59.disabled) {
                        H19 = parseFloat(b0y(this).val());
                        L59(isNaN(H19) ? C59 : H19);
                    }
                }

                function J59(l19) {
                    if (U59) {
                        D59 = H0y(l19, 'X');
                        R19 = H0y(l19, 'Y');
                        N19 = D59 - S59;
                        n59 = R19 - G59;
                        if (Math.abs(N19) > 7 || Math.abs(n59) > 7) {
                            r59();
                        }
                    }
                }

                function o59(b19) {
                    if (U59) {
                        b19.preventDefault();
                        r59(true, b19);
                        if (b19.type === 'mouseup') {
                            b0y(c0y).off('mousemove', J59).off('mouseup', o59);
                        }
                    }
                }

                function h59(y19) {
                    if (F0y(y19, this) && !Q59.disabled) {
                        m59 = b0y(this).addClass('mbsc-active').trigger('focus');
                        if (Y59) {
                            Y59.trigger('onControlActivate', {
                                target: m59[0],
                                domEvent: y19
                            });
                        }
                        z19(y19);
                        if (y19.type === 'mousedown') {
                            b0y(c0y).on('mousemove', J59).on('mouseup', o59);
                        }
                    }
                }

                function g59(f19) {
                    if (U59) {
                        f19.preventDefault();
                        r59(true);
                    }
                }

                function j59(T19) {
                    if (T19.keyCode == 32) {
                        T19.preventDefault();
                        if (!U59 && !Q59.disabled) {
                            m59 = b0y(this).addClass('mbsc-active');
                            z19(T19);
                        }
                    }
                }
                var m59, k59, I59, s59, U59, u59, N19, n59, O59, D59, R19, p59, A59, t59, E59, X59, S59, G59, C59, Z59 = this,
                    d59 = b0y(Q59),
                    v59, M59, V59 = C59,
                    Y59 = B59.form;
                l0y.classes.Base.call(this, Q59, B59, true);
                Z59.getVal = function() {
                    var C19 = parseFloat(d59.val());
                    C19 = isNaN(C19) ? C59 : C19;
                    return Math.min(A59, Math.max(Math.round(C19 / E59) * E59, t59));
                };
                Z59.setVal = function(d19, E19, A19) {
                    d19 = parseFloat(d19);
                    L59(isNaN(d19) ? C59 : d19, E19, A19);
                };
                Z59._init = function(t19) {
                    v59 = d59.parent().hasClass('mbsc-stepper');
                    M59 = v59 ? d59.closest('.mbsc-stepper-cont') : d59.parent();
                    X59 = Z59.settings;
                    t59 = t19.min === q0y ? e59('min', X59.min) : t19.min;
                    A59 = t19.max === q0y ? e59('max', X59.max) : t19.max;
                    E59 = t19.step === q0y ? e59('step', X59.step) : t19.step;
                    O59 = d59.attr('data-val') || X59.val;
                    C59 = Math.min(A59, Math.max(Math.round(+Q59.value / E59) * E59 || 0, t59));
                    if (!v59) {
                        M59.addClass('mbsc-stepper-cont mbsc-control-w').append('<span class="mbsc-segmented mbsc-stepper"></span>').find('.mbsc-stepper').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-minus ' + (C59 == t59 ? 'mbsc-step-disabled' : '') + '"  tabindex="0"><span class="mbsc-segmented-content"><span class="mbsc-ic mbsc-ic-minus"></span></span></span>').append('<span class="mbsc-segmented-item mbsc-stepper-control mbsc-stepper-plus ' + (C59 == A59 ? 'mbsc-step-disabled' : '') + '"  tabindex="0"><span class="mbsc-segmented-content"> <span class="mbsc-ic mbsc-ic-plus"></span> </span></span>').prepend(d59);
                    }
                    I59 = b0y('.mbsc-stepper-minus', M59);
                    k59 = b0y('.mbsc-stepper-plus', M59);
                    if (!v59) {
                        if (O59 == 'left') {
                            M59.addClass('mbsc-stepper-val-left');
                            d59.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>');
                        } else if (O59 == 'right') {
                            M59.addClass('mbsc-stepper-val-right');
                            k59.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content"></span></span>');
                        } else {
                            I59.after('<span class="mbsc-segmented-item"><span class="mbsc-segmented-content mbsc-stepper-val"></span></span>');
                        }
                    }
                    d59.val(C59).attr('data-role', 'stepper').attr('min', t59).attr('max', A59).attr('step', E59).on('change', W59);
                    s59 = b0y('.mbsc-stepper-control', M59).on('keydown', j59).on('keyup', g59).on('mousedown touchstart', h59).on('touchmove', J59).on('touchend touchcancel', o59);
                    d59.addClass('mbsc-stepper-ready mbsc-control');
                };
                Z59._destroy = function() {
                    d59.removeClass('mbsc-control').off('change', W59);
                    s59.off('keydown', j59).off('keyup', g59).off('mousedown touchstart', h59).off('touchmove', J59).off('touchend touchcancel', o59);
                };
                Z59.init(B59);
            };
            l0y.classes.Stepper.prototype = {
                _class: 'stepper',
                _defaults: {
                    min: 0,
                    max: 100,
                    step: 1
                }
            };
            l0y.presetShort('stepper', 'Stepper');
            l0y.classes.Switch = function(Q19, M19) {
                var Z19, m19, p19, U19 = this;
                M19 = M19 || {};
                b0y.extend(M19, {
                    changeEvent: 'click',
                    min: 0,
                    max: 1,
                    step: 1,
                    live: false,
                    round: false,
                    handle: false,
                    highlight: false
                });
                l0y.classes.Slider.call(this, Q19, M19, true);
                U19._readValue = function() {
                    return Q19.checked ? 1 : 0;
                };
                U19._fillValue = function(Y19, L19, X19) {
                    Z19.prop('checked', !!Y19);
                    if (X19) {
                        Z19.trigger('change');
                    }
                };
                U19._onTap = function(v19) {
                    U19._setVal(v19 ? 0 : 1);
                };
                U19.__onInit = function() {
                    p19 = U19.settings;
                    Z19 = b0y(Q19);
                    m19 = Z19.parent();
                    m19.find('.mbsc-switch-track').remove();
                    m19.prepend(Z19);
                    Z19.attr('data-role', 'switch').after('<span class="mbsc-progress-cont mbsc-switch-track">' + '<span class="mbsc-progress-track mbsc-progress-anim">' + '<span class="mbsc-slider-handle-cont">' + '<span class="mbsc-slider-handle mbsc-switch-handle" data-index="0">' + '<span class="mbsc-switch-txt-off">' + p19.offText + '</span>' + '<span class="mbsc-switch-txt-on">' + p19.onText + '</span>' + '</span></span></span></span>');
                    U19._$track = m19.find('.mbsc-progress-track');
                };
                U19.getVal = function() {
                    return Q19.checked;
                };
                U19.setVal = function(u19, o19, J19) {
                    U19._setVal(u19 ? 1 : 0, o19, J19);
                };
                U19.init(M19);
            };
            l0y.classes.Switch.prototype = {
                _class: 'switch',
                _css: 'mbsc-switch',
                _hasTheme: true,
                _hasLang: true,
                _defaults: {
                    stopProp: true,
                    offText: 'Off',
                    onText: 'On'
                }
            };
            l0y.presetShort('switch', 'Switch');
            b0y(function() {
                var k19 = '[mbsc-enhance],[mbsc-form]';
                b0y(k19).each(function() {
                    new l0y.classes.Form(this);
                });
                b0y(c0y).on('mbsc-enhance', function(B19, V19) {
                    if (b0y(B19.target).is(k19)) {
                        new l0y.classes.Form(B19.target, V19);
                    } else {
                        b0y(k19, B19.target).each(function() {
                            new l0y.classes.Form(this, V19);
                        });
                    }
                });
                b0y(c0y).on('mbsc-refresh', function(I19) {
                    var O19;
                    if (b0y(I19.target).is(k19)) {
                        O19 = l0y.instances[I19.target.id];
                        if (O19) {
                            O19.refresh();
                        }
                    } else {
                        b0y(k19, I19.target).each(function() {
                            O19 = l0y.instances[this.id];
                            if (O19) {
                                O19.refresh();
                            }
                        });
                    }
                });
            });
        }(document));
        (function(s19) {
            var r19 = R,
                e19 = r19.$,
                G19 = {
                    invalid: [],
                    showInput: true,
                    inputClass: ''
                };
            r19.presets.scroller.list = function(j19) {
                function x29(o69, O69, k69) {
                    var v69, u69 = (O69 || 0) + 1,
                        B69 = [],
                        J69 = {},
                        V69 = {};
                    J69 = c29(o69, null, O69);
                    for (v69 = 0; v69 < o69.length; v69++) {
                        j19._tempWheelArray[v69] = o69[v69] = k69.nVector[v69] || 0;
                    }
                    while (u69 < k69.lvl) {
                        V69[u69] = N29 ? J69[0][u69] : J69[u69][0];
                        B69.push(u69++);
                    }
                    F29(k69.lvl);
                    T29 = o69.slice(0);
                    if (B69.length) {
                        z29 = true;
                        j19.changeWheel(V69);
                    }
                }

                function w29(Z69) {
                    var U69 = [];
                    g19 = g19 > f29++ ? g19 : f29;
                    Z69.children('li').each(function(L69) {
                        var M69 = e19(this),
                            Q69 = M69.clone();
                        Q69.children('ul,ol').remove();
                        var Y69 = j19._processMarkup ? j19._processMarkup(Q69) : Q69.html().replace(/^\s\s*/, '').replace(/\s\s*$/, ''),
                            X69 = M69.attr('data-invalid') ? true : false,
                            m69 = {
                                key: M69.attr('data-val') === s19 || M69.attr('data-val') === null ? L69 : M69.attr('data-val'),
                                value: Y69,
                                invalid: X69,
                                children: null
                            },
                            p69 = M69.children('ul,ol');
                        if (p69.length) {
                            m69.children = w29(p69);
                        }
                        U69.push(m69);
                    });
                    f29--;
                    return U69;
                }

                function q29(C69, t69) {
                    var A69 = [],
                        i69 = D19,
                        P69 = 0,
                        E69 = false,
                        x69, d69, F69;
                    if (C69[P69] !== s19 && P69 <= t69) {
                        x69 = 0;
                        d69 = C69[P69];
                        F69 = s19;
                        while (x69 < i69.length && F69 === s19) {
                            if (i69[x69].key == C69[P69] && !i69[x69].invalid) {
                                F69 = x69;
                            }
                            x69++;
                        }
                    } else {
                        F69 = R29(i69, true);
                        d69 = i69[F69].key;
                    }
                    E69 = F69 !== s19 ? i69[F69].children : false;
                    A69[P69] = d69;
                    while (E69) {
                        i69 = i69[F69].children;
                        P69++;
                        E69 = false;
                        F69 = s19;
                        if (C69[P69] !== s19 && P69 <= t69) {
                            x69 = 0;
                            d69 = C69[P69];
                            F69 = s19;
                            while (x69 < i69.length && F69 === s19) {
                                if (i69[x69].key == C69[P69] && !i69[x69].invalid) {
                                    F69 = x69;
                                }
                                x69++;
                            }
                        } else {
                            F69 = R29(i69, true);
                            F69 = F69 === false ? s19 : F69;
                            d69 = i69[F69].key;
                        }
                        E69 = F69 !== s19 && R29(i69[F69].children) ? i69[F69].children : false;
                        A69[P69] = d69;
                    }
                    return {
                        lvl: P69 + 1,
                        nVector: A69
                    };
                }

                function E29(a69) {
                    var q69 = [],
                        c69 = a69,
                        K69, H69 = true,
                        w69 = 0;
                    while (H69) {
                        K69 = R29(c69);
                        q69[w69++] = K69.key;
                        H69 = K69.children;
                        if (H69) {
                            c69 = H69;
                        }
                    }
                    return q69;
                }

                function F29(l69) {
                    if (j19._isVisible) {
                        e19('.mbsc-sc-whl-w', j19._markup).css('display', '').slice(l69).hide();
                    }
                }

                function i29(f69, b69) {
                    var y69 = {
                            data: [],
                            label: b69
                        },
                        T69 = 0;
                    while (T69 < f69.length) {
                        y69.data.push({
                            value: f69[T69].key,
                            display: f69[T69].value
                        });
                        T69++;
                    }
                    return y69;
                }

                function R29(R69, N69) {
                    if (!R69) {
                        return false;
                    }
                    var W29 = 0,
                        z69;
                    while (W29 < R69.length) {
                        if (!(z69 = R69[W29++]).invalid) {
                            return N69 ? W29 - 1 : z69;
                        }
                    }
                    return false;
                }

                function c29(S29, D29, g29) {
                    var e29 = 0,
                        r29, h29, j29, n29 = [
                            []
                        ],
                        G29 = D19;
                    if (D29) {
                        for (r29 = 0; r29 < D29; r29++) {
                            if (N29) {
                                n29[0][r29] = {};
                            } else {
                                n29[r29] = [{}];
                            }
                        }
                    }
                    while (e29 < S29.length) {
                        if (N29) {
                            n29[0][e29] = i29(G29, l29[e29]);
                        } else {
                            n29[e29] = [i29(G29, l29[e29])];
                        }
                        r29 = 0;
                        j29 = s19;
                        while (r29 < G29.length && j29 === s19) {
                            if (G29[r29].key == S29[e29] && (g29 !== s19 && e29 <= g29 || g29 === s19)) {
                                j29 = r29;
                            }
                            r29++;
                        }
                        if (j29 !== s19 && G29[j29].children) {
                            e29++;
                            G29 = G29[j29].children;
                        } else if ((h29 = R29(G29)) && h29.children) {
                            e29++;
                            G29 = h29.children;
                        } else {
                            return n29;
                        }
                    }
                    return n29;
                }

                function C29(s29) {
                    var I29 = [],
                        O29;
                    for (O29 = 0; O29 < s29; O29++) {
                        I29[O29] = n19.labels && n19.labels[O29] ? n19.labels[O29] : O29;
                    }
                    return I29;
                }

                function d29(B29, V29) {
                    var k29 = [];
                    while (B29) {
                        k29[--B29] = true;
                    }
                    k29[V29] = false;
                    return k29;
                }

                function A29(u29, o29, J29) {
                    var p29 = 0,
                        X29, Y29 = J29,
                        L29 = [];
                    while (p29 < o29) {
                        var v29 = u29[p29];
                        for (X29 in Y29) {
                            if (Y29[X29].key == v29) {
                                Y29 = Y29[X29].children;
                                break;
                            }
                        }
                        p29++;
                    }
                    p29 = 0;
                    while (p29 < Y29.length) {
                        if (Y29[p29].invalid) {
                            L29.push(Y29[p29].key);
                        }
                        p29++;
                    }
                    return L29;
                }

                function t29(M29, Q29, m29) {
                    var U29 = 0,
                        Z29 = [];
                    while (U29 < M29) {
                        Z29[U29] = A29(m29, U29, Q29);
                        U29++;
                    }
                    return Z29;
                }
                var P29 = e19.extend({}, j19.settings),
                    n19 = e19.extend(j19.settings, G19, P29),
                    b29 = n19.layout || (/top|bottom/.test(n19.display) ? 'liquid' : ''),
                    N29 = b29 == 'liquid',
                    a29 = n19.readonly,
                    W19 = e19(this),
                    S19, z29, y29 = this.id + '_dummy',
                    g19 = 0,
                    f29 = 0,
                    h19, T29 = [],
                    D19 = n19.wheelArray || w29(W19),
                    l29 = C29(g19),
                    H29 = E29(D19),
                    K29 = c29(H29, g19);
                e19('#' + y29).remove();
                if (n19.showInput) {
                    S19 = e19('<input type="text" id="' + y29 + '" value="" class="' + n19.inputClass + '" placeholder="' + (n19.placeholder || '') + '" readonly />').insertBefore(W19);
                    n19.anchor = S19;
                    j19.attachShow(S19);
                }
                if (!n19.wheelArray) {
                    W19.hide();
                }
                return {
                    wheels: K29,
                    layout: b29,
                    headerText: false,
                    setOnTap: g19 == 1,
                    formatValue: function(I69) {
                        if (h19 === s19) {
                            h19 = q29(I69, I69.length).lvl;
                        }
                        return I69.slice(0, h19).join(' ');
                    },
                    parseValue: function(s69) {
                        return s69 ? (s69 + '').split(' ') : (n19.defaultValue || H29).slice(0);
                    },
                    onBeforeShow: function() {
                        var e69 = j19.getArrayVal(true);
                        T29 = e69.slice(0);
                        n19.wheels = c29(e69, g19, g19);
                        z29 = true;
                    },
                    onWheelGestureStart: function(r69) {
                        n19.readonly = d29(g19, r69.index);
                    },
                    onWheelAnimationEnd: function(g69) {
                        var G69 = g69.index,
                            n69 = j19.getArrayVal(true),
                            j69 = q29(n69, G69);
                        h19 = j69.lvl;
                        n19.readonly = a29;
                        if (n69[G69] != T29[G69]) {
                            x29(n69, G69, j69);
                        }
                    },
                    onFill: function(h69) {
                        h19 = s19;
                        if (S19) {
                            S19.val(h69.valueText);
                        }
                    },
                    validate: function(R49) {
                        var S69 = R49.values,
                            W69 = R49.index,
                            D69 = q29(S69, S69.length);
                        h19 = D69.lvl;
                        if (W69 === s19) {
                            F29(D69.lvl);
                            if (!z29) {
                                x29(S69, W69, D69);
                            }
                        }
                        z29 = false;
                        return {
                            disabled: t29(h19, D19, S69)
                        };
                    },
                    onDestroy: function() {
                        if (S19) {
                            S19.remove();
                        }
                        W19.show();
                    }
                };
            };
        }());
        (function() {
            var z49 = R,
                N49 = z49.$,
                T49 = z49.presets.scroller;
            z49.presetShort('image');
            T49.image = function(f49) {
                if (f49.settings.enhance) {
                    f49._processMarkup = function(y49) {
                        var b49 = y49.attr('data-icon');
                        y49.children().each(function(H49, l49) {
                            l49 = N49(l49);
                            if (l49.is('img')) {
                                N49('<div class="mbsc-img-c"></div>').insertAfter(l49).append(l49.addClass('mbsc-img'));
                            } else if (l49.is('p')) {
                                l49.addClass('mbsc-img-txt');
                            }
                        });
                        if (b49) {
                            y49.prepend('<div class="mbsc-ic mbsc-ic-' + b49 + '"></div');
                        }
                        y49.html('<div class="mbsc-img-w">' + y49.html() + '</div>');
                        return y49.html();
                    };
                }
                return T49.list.call(this, f49);
            };
        }());
        (function(t49, P49, F49) {
            var a49, i49 = R,
                q49 = i49.$,
                A49 = q49.extend,
                d49 = i49.classes,
                c49 = i49.util,
                E49 = c49.prefix,
                w49 = c49.jsPrefix,
                K49 = c49.getCoord,
                Q49 = c49.testTouch,
                U49 = c49.vibrate,
                Z49 = c49.animEnd,
                C49 = 1,
                x49 = function() {},
                m49 = t49.requestAnimationFrame || function(Y49) {
                    Y49();
                },
                p49 = t49.cancelAnimationFrame || x49,
                M49 = 'transparent';
            d49.ListView = function(R99, s89) {
                function i89(I09, e09, r09) {
                    var s09, O09;
                    if (I09 && I09.length) {
                        s09 = 100 / (I09.length + 2);
                        q49.each(I09, function(n09, G09) {
                            if (G09.key === F49) {
                                G09.key = M89++;
                            }
                            if (G09.percent === F49) {
                                G09.percent = e09 * s09 * (n09 + 1);
                                if (r09) {
                                    O09 = A49({}, G09);
                                    O09.key = M89++;
                                    O09.percent = -s09 * (n09 + 1);
                                    I09.push(O09);
                                    V79[O09.key] = O09;
                                }
                            }
                            V79[G09.key] = G09;
                        });
                    }
                }

                function E89(J09, k09) {
                    var B09, V09 = J09.attr('data-ref');
                    B09 = K89[V09] = K89[V09] || [];
                    if (k09) {
                        B09.push(k09);
                    }
                    if (J09.attr('data-action')) {
                        return;
                    }
                    k09 = B09.shift();
                    J09.attr('data-action', 1);
                    k09(function() {
                        J09.removeAttr('data-action');
                        if (B09.length) {
                            E89(J09);
                        } else {
                            delete K89[V09];
                        }
                    });
                }

                function E99(X09, v09, L09) {
                    function u09() {
                        clearTimeout(o09);
                        l79--;
                        X09.off(Z49, u09).removeClass(v09);
                        L09.call(G49, X09);
                    }
                    var o09;
                    L09 = L09 || x49;
                    if (v49.animation && v09 !== 'mbsc-lv-item-none') {
                        l79++;
                        X09.on(Z49, u09).addClass(v09);
                        o09 = setTimeout(u09, 500);
                    } else {
                        L09.call(G49, X09);
                    }
                }

                function U89(p09, Y09) {
                    if (!l79) {
                        if (p09.hasClass('mbsc-lv-parent')) {
                            C79++;
                            m89('r', W49[p09.attr('data-ref')].child, null, Y09);
                        } else if (p09.hasClass('mbsc-lv-back')) {
                            C79--;
                            m89('l', W49[p09.attr('data-back')].parent, W49[p09.attr('data-back')].item, Y09);
                        }
                    }
                }

                function m89(M09, A09, t09, U09, Q09) {
                    var m09 = A09.parent(),
                        Z09 = A09.prev();
                    U09 = U09 || x49;
                    if (Z09[0] === S49[0]) {
                        Z09 = S49.prev();
                    }
                    if (j49[0] !== A09[0]) {
                        I49('onNavStart', {
                            level: C79,
                            direction: M09,
                            list: A09[0]
                        });
                        d89.prepend(A09.addClass('mbsc-lv-v mbsc-lv-sl-new'));
                        k79(o49);
                        E99(d89, 'mbsc-lv-sl-' + M09, function() {
                            j49.removeClass('mbsc-lv-sl-curr');
                            A09.removeClass('mbsc-lv-sl-new').addClass('mbsc-lv-sl-curr');
                            if (s79 && s79.length) {
                                j49.removeClass('mbsc-lv-v').insertAfter(s79);
                            } else {
                                j79.append(j49.removeClass('mbsc-lv-v'));
                            }
                            s79 = Z09;
                            j79 = m09;
                            j49 = A09;
                            k79(t09, Q09);
                            U09.call(G49, t09);
                            I49('onNavEnd', {
                                level: C79,
                                direction: M09,
                                list: A09[0]
                            });
                        });
                    } else {
                        k79(t09, Q09);
                        U09.call(G49, t09);
                    }
                }

                function k79(C09, E09) {
                    if (C09) {
                        var x09 = k49.scrollTop(),
                            d09 = C09.is('.mbsc-lv-item') ? C09[0].offsetHeight : 0,
                            P09 = C09.offset().top + (y79 ? x09 - Z89 : 0);
                        if (E09) {
                            if (P09 < x09 || P09 + d09 > x09 + X79) {
                                k49.scrollTop(P09);
                            }
                        } else {
                            if (P09 < x09) {
                                k49.scrollTop(P09);
                            } else if (P09 + d09 > x09 + X79) {
                                k49.scrollTop(P09 + d09 - X79 / 2);
                            }
                        }
                    }
                }

                function P99(F09, i09) {
                    return +(i09 < 0 ? w79((F09.actionsWidth || 0).right) || w79(F09.actionsWidth) || w79(v49.actionsWidth.right) || w79(v49.actionsWidth) : w79((F09.actionsWidth || 0).left) || w79(F09.actionsWidth) || w79(v49.actionsWidth.left) || w79(v49.actionsWidth));
                }

                function w79(a09) {
                    return c49.isNumeric(a09) ? a09 + '' : 0;
                }

                function F99(w09) {
                    return (w09 > 0 ? J49.right : J49.left).color || M49;
                }

                function n79(c09, K09) {
                    c09 = c09[K09]();
                    while (c09.length && (!c09.hasClass('mbsc-lv-item') || c09.hasClass('mbsc-lv-ph') || c09.hasClass('mbsc-lv-item-dragging'))) {
                        if (!X49.sortable.group && c09.hasClass('mbsc-lv-gr-title')) {
                            return false;
                        }
                        c09 = c09[K09]();
                    }
                    return c09;
                }

                function U99(q09) {
                    var H09 = 0,
                        l09 = W49[q09.attr('data-ref')];
                    while (l09 && l09.ref) {
                        H09++;
                        l09 = W49[l09.ref];
                    }
                    return H09;
                }

                function Z79(b09) {
                    if (typeof b09 !== 'object') {
                        b09 = q49('li[data-id="' + b09 + '"]', o49);
                    }
                    return q49(b09);
                }

                function o79(y09) {
                    return y09.children('li').not('.mbsc-lv-back').not('.mbsc-lv-removed').not('.mbsc-lv-ph');
                }

                function q99(f09) {
                    q49('li', f09).not('.mbsc-lv-item').each(function() {
                        H99(q49(this));
                    });
                    q49('li[data-role="list-divider"]', f09).removeClass('mbsc-lv-item').addClass('mbsc-lv-gr-title');
                    q49('ul,ol', f09).not('.mbsc-lv').addClass('mbsc-lv').prepend(P89).parent().addClass('mbsc-lv-parent').prepend(x89);
                    q49('.mbsc-lv-back', f09).each(function() {
                        q49(this).attr('data-back', q49(this).parent().parent().attr('data-ref'));
                    });
                }

                function H99(D39) {
                    var W39;
                    if (!D39.attr('data-ref')) {
                        W39 = C49++;
                        D39.attr('data-ref', W39);
                        W49[W39] = {
                            item: D39,
                            child: D39.children('ul,ol'),
                            parent: D39.parent(),
                            ref: D39.parent()[0] === G49 ? null : D39.parent().parent().attr('data-ref')
                        };
                    }
                    D39.addClass('mbsc-lv-item');
                    if (X49.sortable.handle && D39.attr('data-role') != 'list-divider' && !D39.children('.mbsc-lv-handle-c').length) {
                        D39.append(K99);
                    }
                    if (v49.enhance && !D39.hasClass('mbsc-lv-item-enhanced')) {
                        var R09 = D39.attr('data-icon'),
                            z09 = D39.find('img').eq(0).addClass('mbsc-lv-img');
                        if (z09.is(':first-child')) {
                            D39.addClass('mbsc-lv-img-' + (v49.rtl ? 'right' : 'left'));
                        } else if (z09.length) {
                            D39.addClass('mbsc-lv-img-' + (v49.rtl ? 'left' : 'right'));
                        }
                        D39.addClass('mbsc-lv-item-enhanced').children().each(function(T09, N09) {
                            N09 = q49(N09);
                            if (N09.is('p, h1, h2, h3, h4, h5, h6')) {
                                N09.addClass('mbsc-lv-txt');
                            }
                        });
                        if (R09) {
                            D39.addClass('mbsc-lv-item-ic-' + (D39.attr('data-icon-align') || (v49.rtl ? 'right' : 'left'))).append('<div class="mbsc-lv-item-ic mbsc-ic mbsc-ic-' + R09 + '"></div>');
                        }
                    }
                }

                function m79(h39, S39) {
                    return q49.isFunction(h39) ? h39.call(this, S39, X49) : h39;
                }

                function Y79(g39) {
                    N79 = g39[0].style;
                    N79[w49 + 'Transform'] = '';
                    N79[w49 + 'Transition'] = '';
                    N79.top = '';
                    g39.removeClass('mbsc-lv-item-swiping');
                }

                function y99(j39) {
                    j39.css('top', '').removeClass('mbsc-lv-item-undo');
                    if (R89) {
                        X49.animate(z79, 'collapse', function() {
                            z79.remove();
                        });
                    } else {
                        z79.remove();
                    }
                    v89();
                    W79 = null;
                    R89 = null;
                }

                function v89(G39, n39) {
                    if (!T79) {
                        u79.attr('class', 'mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none');
                        B49.attr('style', '').removeClass('mbsc-lv-stage-c-v');
                        g79.html('');
                    }
                    B49.removeClass('mbsc-lv-left mbsc-lv-right');
                    if (G39) {
                        I49('onSlideEnd', {
                            target: G39[0],
                            index: u49
                        });
                        if (n39) {
                            n39();
                        }
                    }
                }

                function N89(s39, r39) {
                    var e39 = m79(s39.text, {
                        target: L49[0],
                        index: u49
                    }) || '';
                    if (m79(s39.disabled, {
                            target: L49[0],
                            index: u49
                        })) {
                        B49.addClass('mbsc-lv-ic-disabled');
                    } else {
                        B49.removeClass('mbsc-lv-ic-disabled');
                    }
                    B49.css('background-color', s39.color || (s39.percent === 0 ? F99(s49) : M49));
                    S49.attr('class', 'mbsc-lv-ic-c mbsc-lv-ic-' + (r39 ? 'move-' : '') + (s49 < 0 ? 'right' : 'left'));
                    u79.attr('class', ' mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-' + (s39.icon || 'none'));
                    g79.attr('class', 'mbsc-lv-ic-text' + (s39.icon ? '' : ' mbsc-lv-ic-text-only') + (e39 ? '' : ' mbsc-lv-ic-only')).html(e39 || '&nbsp;');
                    if (v49.animateIcons) {
                        if (l89) {
                            u79.addClass('mbsc-lv-ic-v');
                        } else {
                            setTimeout(function() {
                                u79.addClass('mbsc-lv-ic-a');
                            }, 10);
                        }
                    }
                }

                function C89() {
                    clearTimeout(h79);
                    if (!y89 && X49.sortable) {
                        y89 = true;
                        J79.remove();
                    }
                }

                function z99(I39, B39, V39, O39) {
                    B39 = Math.max(F89, Math.min(B39, c89));
                    N79 = I39[0].style;
                    N79[w49 + 'Transform'] = 'translate3d(0,' + B39 + 'px,0)';
                    N79[w49 + 'Transition'] = E49 + 'transform ' + (V39 || 0) + 'ms ease-out';
                    if (O39) {
                        l79++;
                        setTimeout(function() {
                            O39();
                            l79--;
                        }, V39);
                    }
                }

                function U79(u39, v39, o39, k39, J39) {
                    v39 = Math.max(H79 == 'right' ? 0 : -100, Math.min(v39, H79 == 'left' ? 0 : 100));
                    N79 = u39[0].style;
                    u39.attr('data-pos', v39);
                    N79[w49 + 'Transform'] = 'translate3d(' + (k39 ? E79 * v39 / 100 + 'px' : v39 + '%') + ',0,0)';
                    N79[w49 + 'Transition'] = E49 + 'transform ' + (o39 || 0) + 'ms';
                    if (J39) {
                        l79++;
                        setTimeout(function() {
                            J39();
                            l79--;
                        }, o39);
                    }
                    s49 = v39;
                }

                function e79(Y39, L39, X39) {
                    q49(P49).off('.mbsc-lv-conf');
                    S49.off('.mbsc-lv-conf');
                    if (L39 !== false) {
                        U79(Y39, 0, Y39.attr('data-pos') !== '0' ? 200 : 0, false, function() {
                            v89(Y39, X39);
                            Y79(Y39);
                        });
                    } else {
                        v89(Y39, X39);
                    }
                    a49 = false;
                }

                function D89() {
                    U79(L49, W89 + g49 * 100 / E79);
                    H89 = false;
                }

                function S89(Z39, d39, M39, E39, A39) {
                    var t39, U39;
                    a49 = true;
                    q49(P49).off('.mbsc-lv-conf').on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(Q39) {
                        Q39.preventDefault();
                        if (E39) {
                            y99(d39);
                        }
                        e79(d39, true, A39);
                    });
                    if (!B79) {
                        S49.off('.mbsc-lv-conf').on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(m39) {
                            m39.stopPropagation();
                            t39 = K49(m39, 'X');
                            U39 = K49(m39, 'Y');
                        }).on('touchend.mbsc-lv-conf mouseup.mbsc-lv-conf', function(p39) {
                            p39.preventDefault();
                            if (p39.type === 'touchend') {
                                c49.preventClick();
                            }
                            if (Math.abs(K49(p39, 'X') - t39) < 10 && Math.abs(K49(p39, 'Y') - U39) < 10) {
                                p89(Z39, d39, M39, A39);
                                if (E39) {
                                    R89 = null;
                                    y99(d39);
                                }
                            }
                        });
                    }
                }

                function p89(F39, a39, i39, C39) {
                    var P39, x39 = {
                        icon: 'undo2',
                        text: v49.undoText,
                        color: '#b1b1b1',
                        action: function() {
                            X49.undo();
                        }
                    };
                    if (F39.undo) {
                        X49.startActionTrack();
                        if (q49.isFunction(F39.undo)) {
                            X49.addUndoAction(function() {
                                F39.undo.call(G49, {
                                    target: a39[0],
                                    index: i39
                                }, X49);
                            });
                        }
                        W79 = a39.attr('data-ref');
                    }
                    P39 = F39.action.call(G49, {
                        target: a39[0],
                        index: i39
                    }, X49);
                    if (F39.undo) {
                        X49.endActionTrack();
                        if (P39 !== false) {
                            U79(a39, +a39.attr('data-pos') < 0 ? -100 : 100, 200);
                        }
                        z79.height(O49).insertAfter(a39);
                        a39.css('top', r49).addClass('mbsc-lv-item-undo');
                        a89.hide();
                        S49.show();
                        B49.append(S49);
                        N89(x39);
                        S89(x39, a39, i39, true, C39);
                    } else {
                        e79(a39, P39, C39);
                    }
                }

                function g89(w39, K39) {
                    if (m79(K39.disabled, {
                            target: L49[0],
                            index: u49
                        })) {
                        q49('.mbsc-ic-' + K39.icon, B49).addClass('mbsc-lv-ic-disabled');
                    }
                }

                function M99() {
                    if (x79 || !T79) {
                        var b39, l39 = k49.scrollTop(),
                            y39 = V49.offset().top,
                            H39 = V49[0].offsetHeight,
                            f39 = y79 ? k49.offset().top : l39;
                        q49('.mbsc-lv-gr-title', V49).each(function(c39, q39) {
                            if (q49(q39).offset().top < f39) {
                                b39 = q39;
                            }
                        });
                        if (y39 < f39 && y39 + H39 > f39) {
                            b79.show().empty().append(q49(b39).clone());
                        } else {
                            b79.hide();
                        }
                    }
                }

                function n89(T39) {
                    if (D79) {
                        T39.stopPropagation();
                        T39.preventDefault();
                        D79 = false;
                    }
                }

                function o89() {
                    clearTimeout(a99);
                    a99 = setTimeout(function() {
                        X79 = k49[0].innerHeight || k49.innerHeight();
                        Z89 = y79 ? k49.offset().top : 0;
                        if (T79) {
                            r49 = L49[0].offsetTop;
                            O49 = L49[0].offsetHeight;
                            B49.css({
                                top: r49,
                                height: O49
                            });
                        }
                    }, 200);
                }

                function r89() {
                    if (!z89) {
                        clearTimeout(b99);
                        if (a49) {
                            q49(P49).trigger('touchstart');
                        }
                        if (Q89) {
                            X49.close(q79, b89);
                            Q89 = false;
                            q79 = null;
                        }
                    }
                }

                function I79(D99, W99, R39, z39) {
                    D99.removeClass('mbsc-lv-item-dragging');
                    z79.remove();
                    I49('onSortEnd', {
                        target: D99[0],
                        index: D49
                    });
                    if (v49.vibrate) {
                        U49();
                    }
                    if (z39) {
                        X49.addUndoAction(function(N39) {
                            X49.move(D99, W99, null, N39, R39, true);
                        }, true);
                        I49('onSortUpdate', {
                            target: D99[0],
                            index: D49
                        });
                    }
                }

                function J89() {
                    x79 = true;
                    R79 = false;
                    f79 = false;
                    L79 = 0;
                    D49 = u49;
                    if (v49.vibrate) {
                        U49();
                    }
                    h49 = n79(L49, 'next');
                    c79 = h49.length && h49[0].offsetTop;
                    e49 = n79(L49, 'prev');
                    K79 = e49.length && e49[0].offsetTop + e49[0].offsetHeight;
                    z79.height(O49).insertAfter(L49);
                    L49.css({
                        top: r49
                    }).addClass('mbsc-lv-item-dragging').removeClass('mbsc-lv-item-active').appendTo(d99);
                    I49('onSortStart', {
                        target: L49[0],
                        index: D49
                    });
                }

                function l99(r99) {
                    var j99, g99, n99, G99 = false,
                        h99 = true;
                    p49(N99);
                    H89 = false;
                    if (!t79) {
                        D89();
                    }
                    if (J49.actions) {
                        if (Math.abs(s49) > 10 && O79) {
                            U79(L49, s49 < 0 ? -O79 : O79, 200);
                            G99 = true;
                            a49 = true;
                            j89 = L49;
                            f99 = u49;
                            q49(P49).on('touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf', function(S99) {
                                S99.preventDefault();
                                e79(L49, true, r99);
                            });
                        }
                    } else if (s49) {
                        if (v49.quickSwipe && !t79) {
                            n99 = new Date() - h89;
                            j99 = n99 < 300 && g49 < -50;
                            g99 = n99 < 300 && g49 > 50;
                            if (j99) {
                                l89 = true;
                                n49 = J49.left;
                                N89(n49, v49.iconSlide);
                            } else if (g99) {
                                l89 = true;
                                n49 = J49.right;
                                N89(n49, v49.iconSlide);
                            }
                        }
                        if (n49 && n49.action) {
                            A99 = m79(n49.disabled, {
                                target: L49[0],
                                index: u49
                            });
                            if (!A99) {
                                G99 = true;
                                a49 = t79 || m79(n49.confirm, {
                                    target: L49[0],
                                    index: u49
                                });
                                if (a49) {
                                    U79(L49, (s49 < 0 ? -1 : 1) * S49[0].offsetWidth * 100 / E79, 200, true);
                                    S89(n49, L49, u49, false, r99);
                                } else {
                                    p89(n49, L49, u49, r99);
                                }
                            }
                        }
                    }
                    if (!G99) {
                        e79(L49, h99, r99);
                    }
                    H79 = false;
                }

                function V89() {
                    var e99 = false;
                    if (!H89) {
                        if (J49.actions) {
                            B49.attr('class', 'mbsc-lv-stage-c-v mbsc-lv-stage-c mbsc-lv-' + (s49 < 0 ? 'right' : 'left'));
                        } else {
                            if (F79 && s49 <= F79.percent) {
                                a79--;
                                i79 = F79;
                                F79 = v79[a79];
                                e99 = true;
                            } else if (i79 && s49 >= i79.percent) {
                                a79++;
                                F79 = i79;
                                i79 = v79[a79];
                                e99 = true;
                            }
                            if (e99) {
                                n49 = s49 > 0 ? F79 : i79;
                                if (n49) {
                                    N89(n49, v49.iconSlide);
                                    I49('onStageChange', {
                                        target: L49[0],
                                        index: u49,
                                        stage: n49
                                    });
                                }
                            }
                        }
                        if (!t79) {
                            H89 = true;
                            N99 = m49(D89);
                        }
                    }
                }

                function I89() {
                    H79 = m79(J49.swipe, {
                        target: L49[0],
                        index: u49,
                        direction: g49 > 0 ? 'right' : 'left'
                    });
                    if (H79) {
                        C89();
                        clearTimeout(M79);
                        if (J49.actions) {
                            O79 = P99(J49, g49);
                            a89.html(J49.icons).show().children().css('width', O79 + '%');
                            S49.hide();
                            q49('.mbsc-lv-ic-m', B49).removeClass('mbsc-lv-ic-disabled');
                            q49(J49.leftMenu).each(g89);
                            q49(J49.rightMenu).each(g89);
                        } else {
                            S49.show();
                            a89.hide();
                            a79 = J49.start + (g49 > 0 ? 0 : 1);
                            F79 = v79[a79 - 1];
                            i79 = v79[a79];
                        }
                        L49.addClass('mbsc-lv-item-swiping').removeClass('mbsc-lv-item-active');
                        g79.css('line-height', O49 + 'px');
                        B49.css({
                            top: r49,
                            height: O49,
                            backgroundColor: F99(g49)
                        }).addClass('mbsc-lv-stage-c-v').appendTo(j49.parent());
                        if (v49.iconSlide) {
                            L49.append(S49);
                        }
                        I49('onSlideStart', {
                            target: L49[0],
                            index: u49
                        });
                    }
                }

                function f89(V99) {
                    var O99, k99, B99, I99, s99 = L49;
                    if (T79) {
                        T79 = false;
                        C89();
                        if (V99.type == 'mouseup') {
                            q49(P49).off('mousemove', k89).off('mouseup', f89);
                        }
                        if (!A79) {
                            T99 = setTimeout(function() {
                                z89 = false;
                            }, 300);
                        }
                        if (H79 || A79 || x79) {
                            D79 = true;
                        }
                        if (H79) {
                            l99();
                        } else if (x79) {
                            B99 = j49;
                            if (R79) {
                                Y79(L49.detach());
                                k99 = W49[R79.attr('data-ref')];
                                D49 = o79(k99.child).length;
                                R79.removeClass('mbsc-lv-item-hl');
                                if (v49.navigateOnDrop) {
                                    U89(R79, function() {
                                        X49.add(null, L49, null, null, R79, true);
                                        k79(L49);
                                        I79(L49, u49, B99, true);
                                    });
                                } else {
                                    X49.add(null, L49, null, null, R79, true);
                                    I79(L49, u49, B99, true);
                                }
                            } else if (f79) {
                                Y79(L49.detach());
                                k99 = W49[f79.attr('data-back')];
                                D49 = o79(k99.parent).index(k99.item) + 1;
                                f79.removeClass('mbsc-lv-item-hl');
                                if (v49.navigateOnDrop) {
                                    U89(f79, function() {
                                        X49.add(null, L49, D49, null, j49, true);
                                        k79(L49);
                                        I79(L49, u49, B99, true);
                                    });
                                } else {
                                    X49.add(null, L49, D49, null, k99.parent, true);
                                    I79(L49, u49, B99, true);
                                }
                            } else {
                                O99 = z79[0].offsetTop - r49;
                                z99(L49, O99, Math.abs(O99 - Math.max(F89, Math.min(d79 + L79, c89))) * 6, function() {
                                    Y79(L49);
                                    L49.insertBefore(z79);
                                    I79(L49, u49, B99, D49 !== u49);
                                });
                            }
                            x79 = false;
                        } else if (!A79 && Math.abs(g49) < 5 && Math.abs(d79) < 5) {
                            if (J49.tap) {
                                I99 = J49.tap.call(G49, {
                                    target: L49,
                                    index: u49,
                                    domEvent: V99
                                }, X49);
                            }
                            if (B89) {
                                if (V99.type === 'touchend') {
                                    c49.preventClick();
                                }
                                L49.addClass('mbsc-lv-item-active');
                                I49('onItemActivate', {
                                    target: L49[0],
                                    domEvent: V99
                                });
                            }
                            I99 = I49('onItemTap', {
                                target: L49[0],
                                index: u49,
                                domEvent: V99
                            });
                            if (I99 !== false) {
                                U89(L49);
                            }
                        }
                        clearTimeout(M79);
                        setTimeout(function() {
                            s99.removeClass('mbsc-lv-item-active');
                            I49('onItemDeactivate', {
                                target: s99[0]
                            });
                        }, 100);
                        A79 = false;
                        n49 = null;
                    }
                }

                function k89(L99) {
                    var X99 = false,
                        v99 = true;
                    if (T79) {
                        x99 = K49(L99, 'X');
                        i99 = K49(L99, 'Y');
                        g49 = x99 - r79;
                        d79 = i99 - G79;
                        clearTimeout(C99);
                        if (!x79 && !H79 && !A79 && !L49.hasClass('mbsc-lv-back')) {
                            if (Math.abs(d79) > 10) {
                                A79 = true;
                                f89(A49({}, L99, {
                                    type: L99.type == 'mousemove' ? 'mouseup' : 'touchend'
                                }));
                                clearTimeout(M79);
                            } else if (Math.abs(g49) > 7) {
                                I89();
                            }
                        }
                        if (H79) {
                            L99.preventDefault();
                            s49 = g49 / E79 * 100;
                            V89();
                        } else if (x79) {
                            L99.preventDefault();
                            var J99, u99 = k49.scrollTop(),
                                Y99 = Math.max(F89, Math.min(d79 + L79, c89)),
                                o99 = y79 ? L89 - Z89 + u99 - L79 : L89;
                            if (X79 + u99 < o99 + Y99 + O49) {
                                k49.scrollTop(o99 + Y99 - X79 + O49);
                                J99 = true;
                            } else if (o99 + Y99 < u99) {
                                k49.scrollTop(o99 + Y99);
                                J99 = true;
                            }
                            if (J99) {
                                L79 += k49.scrollTop() - u99;
                            }
                            if (c79) {
                                if (X49.sortable.multiLevel && h49.hasClass('mbsc-lv-parent')) {
                                    if (r49 + O49 / 4 + Y99 > c79) {
                                        X99 = true;
                                    } else if (r49 + O49 - O49 / 4 + Y99 > c79) {
                                        R79 = h49.addClass('mbsc-lv-item-hl');
                                        v99 = false;
                                    }
                                } else if (r49 + O49 / 2 + Y99 > c79) {
                                    if (h49.hasClass('mbsc-lv-back')) {
                                        if (X49.sortable.multiLevel) {
                                            f79 = h49.addClass('mbsc-lv-item-hl');
                                            v99 = false;
                                        }
                                    } else {
                                        X99 = true;
                                    }
                                }
                                if (X99) {
                                    z79.insertAfter(h49);
                                    e49 = h49;
                                    h49 = n79(h49, 'next');
                                    K79 = c79;
                                    c79 = h49.length && h49[0].offsetTop;
                                    D49++;
                                }
                            }
                            if (!X99 && K79) {
                                if (X49.sortable.multiLevel && e49.hasClass('mbsc-lv-parent')) {
                                    if (r49 + O49 - O49 / 4 + Y99 < K79) {
                                        X99 = true;
                                    } else if (r49 + O49 / 4 + Y99 < K79) {
                                        R79 = e49.addClass('mbsc-lv-item-hl');
                                        v99 = false;
                                    }
                                } else if (r49 + O49 / 2 + Y99 < K79) {
                                    if (e49.hasClass('mbsc-lv-back')) {
                                        if (X49.sortable.multiLevel) {
                                            f79 = e49.addClass('mbsc-lv-item-hl');
                                            v99 = false;
                                        }
                                    } else {
                                        X99 = true;
                                    }
                                }
                                if (X99) {
                                    z79.insertBefore(e49);
                                    h49 = e49;
                                    e49 = n79(e49, 'prev');
                                    c79 = K79;
                                    K79 = e49.length && e49[0].offsetTop + e49[0].offsetHeight;
                                    D49--;
                                }
                            }
                            if (v99) {
                                if (R79) {
                                    R79.removeClass('mbsc-lv-item-hl');
                                    R79 = false;
                                }
                                if (f79) {
                                    f79.removeClass('mbsc-lv-item-hl');
                                    f79 = false;
                                }
                            }
                            if (X99) {
                                I49('onSortChange', [L49, D49]);
                            }
                            z99(L49, Y99);
                            I49('onSort', [L49, D49]);
                        } else if (Math.abs(g49) > 5 || Math.abs(d79) > 5) {
                            C89();
                        }
                    }
                }

                function Q99(m99) {
                    var p99;
                    if (m99.type === 'touchstart') {
                        z89 = true;
                        clearTimeout(T99);
                    }
                    if (Q49(m99, this) && !T79 && !l79 && !a49 && !T89 && R.CsDrb) {
                        T79 = true;
                        y89 = true;
                        r79 = K49(m99, 'X');
                        G79 = K49(m99, 'Y');
                        g49 = 0;
                        d79 = 0;
                        L49 = q49(this);
                        p99 = L49;
                        e89();
                        B89 = v49.onItemTap || J49.tap || L49.hasClass('mbsc-lv-parent') || L49.hasClass('mbsc-lv-back');
                        Z99 = V49.offset().top;
                        L89 = L49.offset().top;
                        if (B89) {
                            M79 = setTimeout(function() {
                                p99.addClass('mbsc-lv-item-active');
                                I49('onItemActivate', {
                                    target: p99[0],
                                    domEvent: m99
                                });
                            }, 120);
                        }
                        if (X49.sortable && !L49.hasClass('mbsc-lv-back')) {
                            if (!X49.sortable.group) {
                                t89 = L49.nextUntil('.mbsc-lv-gr-title').filter('.mbsc-lv-item');
                                X89 = L49.prevUntil('.mbsc-lv-gr-title').filter('.mbsc-lv-item');
                            }
                            F89 = (!X49.sortable.group ? X89.length ? X89.eq(-1) : L49 : j49.children('li').eq(0))[0].offsetTop - r49;
                            c89 = (!X49.sortable.group ? t89.length ? t89.eq(-1) : L49 : j49.children('li').eq(-1))[0].offsetTop - r49;
                            if (X49.sortable.handle) {
                                if (q49(m99.target).hasClass('mbsc-lv-handle')) {
                                    clearTimeout(M79);
                                    if (w49 === 'Moz') {
                                        m99.preventDefault();
                                        J89();
                                    } else {
                                        h79 = setTimeout(function() {
                                            J89();
                                        }, 100);
                                    }
                                }
                            } else {
                                h79 = setTimeout(function() {
                                    J79.appendTo(L49);
                                    J79[0].style[w49 + 'Animation'] = 'mbsc-lv-fill ' + (v49.sortDelay - 100) + 'ms linear';
                                    clearTimeout(C99);
                                    clearTimeout(M79);
                                    y89 = false;
                                    h79 = setTimeout(function() {
                                        J79[0].style[w49 + 'Animation'] = '';
                                        J89();
                                    }, v49.sortDelay - 80);
                                }, 80);
                            }
                        }
                        if (m99.type == 'mousedown') {
                            q49(P49).on('mousemove', k89).on('mouseup', f89);
                        }
                    }
                }

                function e89() {
                    l89 = false;
                    D79 = false;
                    s49 = 0;
                    W89 = 0;
                    h89 = new Date();
                    E79 = j49.width();
                    w99 = o79(j49);
                    u49 = w99.index(L49);
                    O49 = L49[0].offsetHeight;
                    r49 = L49[0].offsetTop;
                    J49 = p79[L49.attr('data-type') || 'defaults'];
                    v79 = J49.stages;
                }
                var T79, O79, M79, s49, y89, j89, f99, o49, D49, j49, s79, j79, w99, n49, a79, a99, B79, A99, g49, d79, R79, f79, x79, d99, C99, x99, i99, I49, J79, q89, b79, Y89, t99, y79, K99, c99, q79, Q89, b89, O89, b99, P89, x89, u79, S49, B49, E79, L49, O49, u49, L89, Z99, c89, F89, a89, h49, c79, i79, t89, S79, D79, z89, T99, X89, z79, e49, K79, F79, l89, N99, H89, v49, A79, t79, d89, M89, v79, W89, h89, r79, G79, N79, H79, u89, G89, B89, g79, h79, J49, p79, W79, R89, k49, X79, L79, Z89, X49 = this,
                    G49 = R99,
                    V49 = q49(G49),
                    l79 = 0,
                    C79 = 0,
                    r49 = 0,
                    V79 = {},
                    K89 = {},
                    W49 = {};
                d49.Base.call(this, R99, s89, true);
                X49.animate = function(j09, g09, h09) {
                    E99(j09, 'mbsc-lv-item-' + g09, h09);
                };
                X49.add = function(F5z, c5z, z5z, l5z, a5z, T5z) {
                    var q5z, f5z, H5z, w5z, N5z, b5z, y5z = '',
                        D09 = a5z === F49 ? V49 : Z79(a5z),
                        W09 = D09,
                        S09 = typeof c5z !== 'object' ? q49('<li data-ref="' + C49++ + '" data-id="' + F5z + '">' + c5z + '</li>') : c5z,
                        K5z = S09.attr('data-pos') < 0 ? 'left' : 'right',
                        R5z = S09.attr('data-ref');
                    l5z = l5z || x49;
                    if (!R5z) {
                        R5z = C49++;
                        S09.addClass('mbsc-lv-item').attr('data-ref', R5z);
                    }
                    H99(S09);
                    if (!T5z) {
                        X49.addUndoAction(function(i5z) {
                            if (w5z) {
                                X49.navigate(D09, function() {
                                    W09.remove();
                                    D09.removeClass('mbsc-lv-parent').children('.mbsc-lv-arr').remove();
                                    N5z.child = D09.children('ul,ol');
                                    X49.remove(S09, null, i5z, true);
                                });
                            } else {
                                X49.remove(S09, null, i5z, true);
                            }
                        }, true);
                    }
                    E89(S09, function(P5z) {
                        Y79(S09.css('top', '').removeClass('mbsc-lv-item-undo'));
                        if (D09.is('li')) {
                            b5z = D09.attr('data-ref');
                            if (!D09.children('ul,ol').length) {
                                w5z = true;
                                D09.append('<ul></ul>');
                            }
                        } else {
                            b5z = D09.children('.mbsc-lv-back').attr('data-back');
                        }
                        N5z = W49[b5z];
                        if (N5z) {
                            if (!N5z.child.length) {
                                D09.addClass('mbsc-lv-parent').prepend(x89);
                                W09 = D09.children('ul,ol').prepend(P89).addClass('mbsc-lv');
                                N5z.child = W09;
                                q49('.mbsc-lv-back', D09).attr('data-back', b5z);
                            } else {
                                W09 = N5z.child;
                            }
                        }
                        W49[R5z] = {
                            item: S09,
                            child: S09.children('ul,ol'),
                            parent: W09,
                            ref: b5z
                        };
                        H5z = o79(W09);
                        f5z = H5z.length;
                        if (z5z === F49 || z5z === null) {
                            z5z = f5z;
                        }
                        if (T5z) {
                            y5z = 'mbsc-lv-item-new-' + (T5z ? K5z : '');
                        }
                        q99(S09.addClass(y5z));
                        if (z5z !== false) {
                            if (!f5z) {
                                q5z = q49('.mbsc-lv-back', W09);
                                if (q5z.length) {
                                    S09.insertAfter(q5z);
                                } else {
                                    W09.append(S09);
                                }
                            } else if (z5z < f5z) {
                                S09.insertBefore(H5z.eq(z5z));
                            } else {
                                S09.insertAfter(H5z.eq(f5z - 1));
                            }
                        }
                        if (W09.hasClass('mbsc-lv-v')) {
                            X49.animate(S09.height(S09[0].offsetHeight), T5z && W79 === R5z ? 'none' : 'expand', function(x5z) {
                                X49.animate(x5z.height(''), T5z ? 'add-' + K5z : 'pop-in', function(C5z) {
                                    l5z.call(G49, C5z.removeClass(y5z));
                                    P5z();
                                });
                            });
                        } else {
                            l5z.call(G49, S09.removeClass(y5z));
                            P5z();
                        }
                        o49.trigger('mbsc-enhance', [{
                            theme: v49.theme,
                            lang: v49.lang
                        }]);
                        I49('onItemAdd', {
                            target: S09[0]
                        });
                    });
                };
                X49.swipe = function(d5z, A5z, E5z, t5z, U5z) {
                    d5z = Z79(d5z);
                    L49 = d5z;
                    B79 = t5z;
                    t79 = true;
                    T79 = true;
                    E5z = E5z === F49 ? 300 : E5z;
                    g49 = A5z > 0 ? 1 : -1;
                    e89();
                    I89();
                    U79(d5z, A5z, E5z);
                    clearTimeout(G89);
                    clearInterval(u89);
                    u89 = setInterval(function() {
                        s49 = c49.getPosition(d5z) / E79 * 100;
                        V89();
                    }, 10);
                    G89 = setTimeout(function() {
                        clearInterval(u89);
                        s49 = A5z;
                        V89();
                        l99(U5z);
                        B79 = false;
                        t79 = false;
                        T79 = false;
                    }, E5z);
                };
                X49.openStage = function(M5z, Z5z, Q5z, m5z) {
                    if (V79[Z5z]) {
                        X49.swipe(M5z, V79[Z5z].percent, Q5z, m5z);
                    }
                };
                X49.openActions = function(p5z, X5z, L5z, v5z) {
                    p5z = Z79(p5z);
                    var Y5z = P99(p79[p5z.attr('data-type') || 'defaults'], X5z == 'left' ? -1 : 1);
                    X49.swipe(p5z, X5z == 'left' ? -Y5z : Y5z, L5z, v5z);
                };
                X49.close = function(u5z, o5z) {
                    X49.swipe(u5z, 0, o5z);
                };
                X49.remove = function(J5z, V5z, k5z, I5z) {
                    var s5z, B5z, O5z;
                    k5z = k5z || x49;
                    J5z = Z79(J5z);
                    if (J5z.length) {
                        B5z = J5z.parent();
                        s5z = o79(B5z).index(J5z);
                        O5z = J5z[0].style;
                        if (!I5z) {
                            if (J5z.attr('data-ref') === W79) {
                                R89 = true;
                            }
                            X49.addUndoAction(function(e5z) {
                                X49.add(null, J5z, s5z, e5z, B5z, true);
                            }, true);
                        }
                        E89(J5z, function(r5z) {
                            V5z = V5z || (J5z.attr('data-pos') < 0 ? 'left' : 'right');
                            if (B5z.hasClass('mbsc-lv-v')) {
                                X49.animate(J5z.addClass('mbsc-lv-removed'), I5z ? 'pop-out' : 'remove-' + V5z, function(G5z) {
                                    O5z.height = G5z[0].offsetHeight + 'px';
                                    X49.animate(G5z, 'collapse', function(n5z) {
                                        O5z.height = '';
                                        Y79(n5z.removeClass('mbsc-lv-removed'));
                                        if (k5z.call(G49, n5z) !== false) {
                                            n5z.remove();
                                        }
                                        r5z();
                                    });
                                });
                            } else {
                                if (k5z.call(G49, J5z) !== false) {
                                    J5z.remove();
                                }
                                r5z();
                            }
                            I49('onItemRemove', {
                                target: J5z[0]
                            });
                        });
                    }
                };
                X49.move = function(j5z, h5z, S5z, D5z, W5z, g5z) {
                    j5z = Z79(j5z);
                    if (!g5z) {
                        X49.startActionTrack();
                    }
                    B49.append(S49);
                    X49.remove(j5z, S5z, null, g5z);
                    X49.add(null, j5z, h5z, D5z, W5z, g5z);
                    if (!g5z) {
                        X49.endActionTrack();
                    }
                };
                X49.navigate = function(R1z, T1z) {
                    var z1z, N1z;
                    R1z = Z79(R1z);
                    z1z = W49[R1z.attr('data-ref')];
                    N1z = U99(R1z);
                    if (z1z) {
                        m89(N1z >= C79 ? 'r' : 'l', z1z.parent, R1z, T1z, true);
                        C79 = N1z;
                    }
                };
                X49._processSettings = function() {
                    if (V49.is('[mbsc-enhance]')) {
                        Y89 = true;
                        V49.removeAttr('mbsc-enhance');
                    }
                };
                X49._init = function() {
                    var H1z, q1z, c1z, f1z = 0,
                        y1z = '',
                        b1z = '',
                        l1z = '';
  
					c1z = v49.sort || v49.sortable;;
					
					H1z = 'mbsc-lv-cont mbsc-lv-' + v49.theme + (v49.rtl ? ' mbsc-lv-rtl' : '') + (v49.baseTheme ? ' mbsc-lv-' + v49.baseTheme : '') + (v49.animateIcons ? ' mbsc-lv-ic-anim' : '') + (v49.striped ? ' mbsc-lv-alt-row ' : '') + (v49.fixedHeader ? ' mbsc-lv-has-fixed-header ' : '');
					
                    X49.sortable = c1z || false;
                    if (!o49) {
                        y1z += '<div class="mbsc-lv-multi-c"></div>';
                        y1z += '<div class="mbsc-lv-ic-c"><div class="mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"></div><div class="mbsc-lv-ic-text"></div></div>';
                        V49.addClass('mbsc-lv mbsc-lv-v mbsc-lv-root').show();
                        B49 = q49('<div class="mbsc-lv-stage-c">' + y1z + '</div>');
                        S49 = q49('.mbsc-lv-ic-c', B49);
                        a89 = q49('.mbsc-lv-multi-c', B49);
                        u79 = q49('.mbsc-lv-ic-s', B49);
                        g79 = q49('.mbsc-lv-ic-text', B49);
                        z79 = q49('<li class="mbsc-lv-item mbsc-lv-ph"></li>');
                        J79 = q49('<div class="mbsc-lv-fill-item"></div>');
                        o49 = q49('<div class="' + H1z + '"><ul class="mbsc-lv mbsc-lv-dummy"></ul><div class="mbsc-lv-sl-c"></div></div>');
                        y79 = v49.context !== 'body';
                        k49 = q49(y79 ? v49.context : t49);
                        d99 = q49('.mbsc-lv-dummy', o49);
                        o49.insertAfter(V49);
                        k49.on('orientationchange resize', o89);
                        o89();
                        o49.on('touchstart mousedown', '.mbsc-lv-item', Q99).on('touchmove', '.mbsc-lv-item', k89).on('touchend touchcancel', '.mbsc-lv-item', f89);
                        G49.addEventListener('click', n89, true);
                        o49.on('touchstart mousedown', '.mbsc-lv-ic-m', function(K1z) {
                            if (!B79) {
                                K1z.stopPropagation();
                                K1z.preventDefault();
                            }
                            r79 = K49(K1z, 'X');
                            G79 = K49(K1z, 'Y');
                        }).on('touchend mouseup', '.mbsc-lv-ic-m', function(w1z) {
                            if (!B79) {
                                if (w1z.type === 'touchend') {
                                    c49.preventClick();
                                }
                                if (a49 && !q49(this).hasClass('mbsc-lv-ic-disabled') && Math.abs(K49(w1z, 'X') - r79) < 10 && Math.abs(K49(w1z, 'Y') - G79) < 10) {
                                    p89((s49 < 0 ? J49.rightMenu : J49.leftMenu)[q49(this).index()], j89, f99);
                                }
                            }
                        });
                        d89 = q49('.mbsc-lv-sl-c', o49).append(V49.addClass('mbsc-lv-sl-curr')).attr('data-ref', C49++);
                        j49 = V49;
                        j79 = o49;
                    } else {
                        o49.attr('class', H1z);
                        if (c1z.handle) {
                            q49('.mbsc-lv-handle-c', V49).remove();
                        }
                        q49('li:not(.mbsc-lv-back)', V49).removeClass('mbsc-lv-item');
                    }
					
					P89 = '<li class="mbsc-lv-item mbsc-lv-back">' + v49.backText + '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + v49.leftArrowClass + '"></div></li>';
					x89 = '<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic ' + v49.rightArrowClass + '"></div>';
					if (X49.sortable.handle) {
						t59 =  X49.sortable.handle === true ? p : X49.sortable.handle;
						K99 = '<div class="mbsc-lv-handle-c mbsc-lv-item-h-' + t59 + ' mbsc-lv-handle"><div class="' + v49.handleClass + ' mbsc-lv-handle-bar-c mbsc-lv-handle">' + v49.handleMarkup + '</div></div>';
					}
					
                    q99(V49);
                    M89 = 0;
                    p79 = v49.itemGroups || {};
                    p79.defaults = {
                        swipeleft: v49.swipeleft,
                        swiperight: v49.swiperight,
                        stages: v49.stages,
                        actions: v49.actions,
                        actionsWidth: v49.actionsWidth
                    };
                    q49.each(p79, function(F1z, a1z) {
                        a1z.swipe = a1z.swipe !== F49 ? a1z.swipe : v49.swipe;
                        a1z.stages = a1z.stages || [];
                        i89(a1z.stages, 1, true);
                        i89(a1z.stages.left, 1);
                        i89(a1z.stages.right, -1);
                        if (a1z.stages.left || a1z.stages.right) {
                            a1z.stages = [].concat(a1z.stages.left || [], a1z.stages.right || []);
                        }
                        q89 = false;
                        if (!a1z.stages.length) {
                            if (a1z.swipeleft) {
                                a1z.stages.push({
                                    percent: -30,
                                    action: a1z.swipeleft
                                });
                            }
                            if (a1z.swiperight) {
                                a1z.stages.push({
                                    percent: 30,
                                    action: a1z.swiperight
                                });
                            }
                        }
                        q49.each(a1z.stages, function(P1z, i1z) {
                            if (i1z.percent === 0) {
                                q89 = true;
                                return false;
                            }
                        });
                        if (!q89) {
                            a1z.stages.push({
                                percent: 0
                            });
                        }
                        a1z.stages.sort(function(x1z, C1z) {
                            return x1z.percent - C1z.percent;
                        });
                        q49.each(a1z.stages, function(d1z, E1z) {
                            if (E1z.percent === 0) {
                                a1z.start = d1z;
                                return false;
                            }
                        });
                        if (q89) {
                            a1z.left = a1z.right = a1z.stages[a1z.start];
                        } else {
                            a1z.left = a1z.stages[a1z.start - 1] || {};
                            a1z.right = a1z.stages[a1z.start + 1] || {};
                        }
                        if (a1z.actions) {
                            a1z.leftMenu = a1z.actions.left || a1z.actions;
                            a1z.rightMenu = a1z.actions.right || a1z.leftMenu;
                            b1z = '';
                            l1z = '';
                            for (f1z = 0; f1z < a1z.leftMenu.length; f1z++) {
                                b1z += '<div ' + (a1z.leftMenu[f1z].color ? 'style="background-color: ' + a1z.leftMenu[f1z].color + '"' : '') + ' class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + a1z.leftMenu[f1z].icon + '">' + (a1z.leftMenu[f1z].text || '') + '</div>';
                            }
                            for (f1z = 0; f1z < a1z.rightMenu.length; ++f1z) {
                                l1z += '<div ' + (a1z.rightMenu[f1z].color ? 'style="background-color: ' + a1z.rightMenu[f1z].color + '"' : '') + ' class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-' + a1z.rightMenu[f1z].icon + '">' + (a1z.rightMenu[f1z].text || '') + '</div>';
                            }
                            if (a1z.actions.left) {
                                a1z.swipe = a1z.actions.right ? a1z.swipe : 'right';
                            }
                            if (a1z.actions.right) {
                                a1z.swipe = a1z.actions.left ? a1z.swipe : 'left';
                            }
                            a1z.icons = '<div class="mbsc-lv-multi mbsc-lv-multi-ic-left">' + b1z + '</div><div class="mbsc-lv-multi mbsc-lv-multi-ic-right">' + l1z + '</div>';
                        }
                    });
                    if (v49.fixedHeader) {
                        q1z = 'mbsc-lv-fixed-header' + (y79 ? ' mbsc-lv-fixed-header-ctx mbsc-lv-' + v49.theme + (v49.baseTheme ? ' mbsc-lv-' + v49.baseTheme : '') : '');
                        if (!b79) {
                            b79 = q49('<div class="' + q1z + '"></div>');
                            if (y79) {
                                k49.before(b79);
                            } else {
                                o49.prepend(b79);
                            }
                            S79 = c49.throttle(M99, 200);
                            k49.on('scroll touchmove', S79);
                        } else {
                            b79.attr('class', q1z);
                        }
                    }
                    if (v49.hover) {
                        if (!b89) {
                            o49.on('mouseover.mbsc-lv', '.mbsc-lv-item', function() {
                                if (!q79 || q79[0] != this) {
                                    r89();
                                    q79 = q49(this);
                                    if (p79[q79.attr('data-type') || 'defaults'].actions) {
                                        b99 = setTimeout(function() {
                                            if (!z89) {
                                                Q89 = true;
                                                X49.openActions(q79, c99, b89, false);
                                            } else {
                                                q79 = null;
                                            }
                                        }, O89);
                                    }
                                }
                            }).on('mouseleave.mbsc-lv', r89);
                        }
                        b89 = v49.hover.time || 200;
                        O89 = v49.hover.timeout || 200;
                        c99 = v49.hover.direction || v49.hover || 'right';
                    }
                    if (Y89) {
                        o49.attr('mbsc-enhance', '');
                    }
                    o49.trigger('mbsc-enhance', [{
                        theme: v49.theme,
                        lang: v49.lang
                    }]);
                };
                X49._destroy = function() {
                    j79.append(j49);
                    if (y79 && b79) {
                        b79.remove();
                    }
                    if (Y89) {
                        V49.attr('mbsc-enhance', '');
                    }
                    G49.removeEventListener('click', n89, true);
                    o49.find('.mbsc-lv-txt,.mbsc-lv-img').removeClass('mbsc-lv-txt mbsc-lv-img');
                    o49.find('ul,ol').removeClass('mbsc-lv mbsc-lv-v mbsc-lv-root mbsc-lv-sl-curr').find('li').removeClass('mbsc-lv-gr-title mbsc-lv-item mbsc-lv-item-enhanced mbsc-lv-parent mbsc-lv-img-left mbsc-lv-img-right mbsc-lv-item-ic-left mbsc-lv-item-ic-right').removeAttr('data-ref');
                    q49('.mbsc-lv-back,.mbsc-lv-handle-c,.mbsc-lv-arr,.mbsc-lv-item-ic', o49).remove();
                    V49.insertAfter(o49);
                    o49.remove();
                    B49.remove();
                    k49.off('orientationchange resize', o89);
                    if (S79) {
                        k49.off('scroll touchmove', S79);
                    }
                };
                var T89, A89 = [],
                    P79 = [],
                    w89 = [],
                    Q79 = 0;
                X49.startActionTrack = function() {
                    if (!Q79) {
                        w89 = [];
                    }
                    Q79++;
                };
                X49.endActionTrack = function() {
                    Q79--;
                    if (!Q79) {
                        P79.push(w89);
                    }
                };
                X49.addUndoAction = function(t1z, U1z) {
                    var A1z = {
                        action: t1z,
                        async: U1z
                    };
                    if (Q79) {
                        w89.push(A1z);
                    } else {
                        P79.push([A1z]);
                        if (P79.length > v49.undoLimit) {
                            P79.shift();
                        }
                    }
                };
                X49.undo = function() {
                    function p1z() {
                        Q1z = A89.shift();
                        if (Q1z) {
                            T89 = true;
                            M1z = Q1z.length - 1;
                            m1z();
                        }
                    }

                    function m1z() {
                        if (M1z < 0) {
                            T89 = false;
                            p1z();
                        } else {
                            Z1z = Q1z[M1z];
                            M1z--;
                            if (Z1z.async) {
                                Z1z.action(m1z);
                            } else {
                                Z1z.action();
                                m1z();
                            }
                        }
                    }
                    var Z1z, M1z, Q1z;
                    if (P79.length) {
                        A89.push(P79.pop());
                    }
                    if (!T89) {
                        p1z();
                    }
                };
                v49 = X49.settings;
                I49 = X49.trigger;
                X49.init(s89);
            };
            d49.ListView.prototype = {
                _class: 'listview',
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _defaults: {
                    context: 'body',
                    actionsWidth: 90,
                    sortDelay: 250,
                    undoLimit: 10,
                    swipe: true,
                    quickSwipe: true,
                    animateIcons: true,
                    animation: true,
                    revert: true,
                    vibrate: true,
                    handleClass: '',
                    handleMarkup: '<div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div>',
                    leftArrowClass: 'mbsc-ic-arrow-left4',
                    rightArrowClass: 'mbsc-ic-arrow-right4',
                    backText: 'Back',
                    undoText: 'Undo',
                    stages: []
                }
            };
            i49.themes.listview.mobiscroll = {
                leftArrowClass: 'mbsc-ic-arrow-left5',
                rightArrowClass: 'mbsc-ic-arrow-right5'
            };
            i49.presetShort('listview', 'ListView');
        }(window, document));
        (function(X1z) {
            var L1z = R,
                Y1z = L1z.$,
                v1z = {
                    batch: 50,
                    min: 0,
                    max: 100,
                    defaultUnit: '',
                    units: null,
                    unitNames: null,
                    invalid: [],
                    sign: false,
                    step: 0.05,
                    scale: 2,
                    convert: function(u1z) {
                        return u1z;
                    },
                    signText: '&nbsp;',
                    wholeText: 'Whole',
                    fractionText: 'Fraction',
                    unitText: 'Unit'
                };
            L1z.presets.scroller.measurement = function(W1z) {
                function Z2z(D2z) {
                    return t2z(D2z).toFixed(B1z ? a2z : 0) + (r1z ? ' ' + b2z[D2z[y2z]] : '');
                }

                function C2z(S2z) {
                    var g2z, h2z;
                    n1z = N2z(o1z.min, D1z, S2z);
                    G1z = N2z(o1z.max, D1z, S2z);
                    if (B1z) {
                        s1z = n1z < 0 ? Math.ceil(n1z) : Math.floor(n1z);
                        h1z = G1z < 0 ? Math.ceil(G1z) : Math.floor(G1z);
                        d2z = i2z(n1z);
                        P2z = i2z(G1z);
                    } else {
                        s1z = Math.round(n1z);
                        h1z = Math.round(G1z);
                        h1z = s1z + Math.floor((h1z - s1z) / j1z) * j1z;
                        c2z = s1z % j1z;
                    }
                    g2z = s1z;
                    h2z = h1z;
                    if (k1z) {
                        h2z = Math.abs(g2z) > Math.abs(h2z) ? Math.abs(g2z) : Math.abs(h2z);
                        g2z = g2z < 0 ? 0 : g2z;
                    }
                    z2z.min = g2z < 0 ? Math.ceil(g2z / I1z) : Math.floor(g2z / I1z);
                    z2z.max = h2z < 0 ? Math.ceil(h2z / I1z) : Math.floor(h2z / I1z);
                }

                function E2z(G2z, n2z, j2z) {
                    G2z = G2z > j2z ? j2z : G2z;
                    G2z = G2z < n2z ? n2z : G2z;
                    return G2z;
                }

                function N2z(s2z, e2z, r2z) {
                    if (e2z === r2z || !o1z.convert) {
                        return s2z;
                    }
                    return o1z.convert.call(this, s2z, e2z, r2z);
                }

                function m2z(O2z, I2z) {
                    O2z = O2z + '';
                    while (O2z.length < I2z) {
                        O2z = '0' + O2z;
                    }
                    return O2z;
                }

                function x2z(V2z, B2z) {
                    return Math.round(V2z / B2z) * B2z;
                }

                function t2z(o2z) {
                    var J2z = +o2z[O1z],
                        k2z = B1z ? o2z[S1z] / T2z * (J2z < 0 ? -1 : 1) : 0;
                    return (k1z && o2z[0] == '-' ? -1 : 1) * (J2z + k2z);
                }

                function q2z(X2z) {
                    var L2z = M2z(X2z),
                        v2z = i2z(X2z),
                        u2z = X2z < 0 ? '-' : '+';
                    if (v2z >= T2z) {
                        if (X2z < 0) {
                            L2z--;
                        } else {
                            L2z++;
                        }
                        v2z = 0;
                    }
                    return [u2z, L2z, v2z];
                }

                function i2z(Y2z) {
                    return B1z ? x2z((Math.abs(Y2z) - Math.abs(M2z(Y2z))) * T2z - K2z, j1z) + K2z : 0;
                }

                function M2z(p2z) {
                    return Math.max(s1z, Math.min(h1z, B1z ? p2z < 0 ? Math.ceil(p2z) : Math.floor(p2z) : x2z(Math.round(p2z - c2z), j1z) + c2z));
                }
                var Q2z = Y1z.extend({}, W1z.settings),
                    o1z = Y1z.extend(W1z.settings, v1z, Q2z),
                    H2z = {},
                    f2z = [
                        []
                    ],
                    g1z = {},
                    z2z = {},
                    l2z = {},
                    F2z = [],
                    k1z = o1z.sign,
                    r1z = o1z.units && o1z.units.length,
                    D1z = r1z ? o1z.defaultUnit || o1z.units[0] : '',
                    b2z = [],
                    B1z = o1z.step < 1,
                    I1z = o1z.step > 1 ? o1z.step : 1,
                    a2z = B1z ? Math.max(o1z.scale, (o1z.step + '').split('.')[1].length) : 1,
                    T2z = Math.pow(10, a2z),
                    j1z = Math.round(B1z ? o1z.step * T2z : o1z.step),
                    U2z, V1z, R2z, A2z = -1,
                    S1z, O1z, y2z, n1z, G1z, s1z, h1z, d2z, P2z, c2z = 0,
                    K2z = 0,
                    w2z, J1z, e1z = 0;
                W1z.setVal = function(W2z, R6z, z6z, N6z, T6z) {
                    W1z._setVal(Y1z.isArray(W2z) ? Z2z(W2z) : W2z, R6z, z6z, N6z, T6z);
                };
                if (o1z.units) {
                    for (J1z = 0; J1z < o1z.units.length; ++J1z) {
                        w2z = o1z.units[J1z];
                        b2z.push(o1z.unitNames ? o1z.unitNames[w2z] || w2z : w2z);
                    }
                }
                if (k1z) {
                    k1z = false;
                    if (r1z) {
                        for (J1z = 0; J1z < o1z.units.length; J1z++) {
                            if (N2z(o1z.min, D1z, o1z.units[J1z]) < 0) {
                                k1z = true;
                            }
                        }
                    } else {
                        k1z = o1z.min < 0;
                    }
                }
                if (k1z) {
                    f2z[0].push({
                        data: ['-', '+'],
                        label: o1z.signText
                    });
                    A2z = e1z++;
                }
                z2z = {
                    label: o1z.wholeText,
                    data: function(f6z) {
                        return s1z % I1z + f6z * I1z;
                    },
                    getIndex: function(y6z) {
                        return Math.round((y6z - s1z % I1z) / I1z);
                    }
                };
                f2z[0].push(z2z);
                O1z = e1z++;
                C2z(D1z);
                if (B1z) {
                    f2z[0].push(l2z);
                    l2z.data = [];
                    l2z.label = o1z.fractionText;
                    for (J1z = K2z; J1z < T2z; J1z += j1z) {
                        F2z.push(J1z);
                        l2z.data.push({
                            value: J1z,
                            display: '.' + m2z(J1z, a2z)
                        });
                    }
                    S1z = e1z++;
                    U2z = Math.ceil(100 / j1z);
                    if (o1z.invalid && o1z.invalid.length) {
                        Y1z.each(o1z.invalid, function(H6z, l6z) {
                            var b6z = l6z > 0 ? Math.floor(l6z) : Math.ceil(l6z);
                            if (b6z === 0) {
                                b6z = l6z <= 0 ? -0.001 : 0.001;
                            }
                            g1z[b6z] = (g1z[b6z] || 0) + 1;
                            if (l6z === 0) {
                                b6z = 0.001;
                                g1z[b6z] = (g1z[b6z] || 0) + 1;
                            }
                        });
                        Y1z.each(g1z, function(q6z, c6z) {
                            if (c6z < U2z) {
                                delete g1z[q6z];
                            } else {
                                g1z[q6z] = q6z;
                            }
                        });
                    }
                }
                if (r1z) {
                    H2z = {
                        data: [],
                        label: o1z.unitText,
                        cssClass: 'mbsc-msr-whl-unit',
                        circular: false
                    };
                    for (J1z = 0; J1z < o1z.units.length; J1z++) {
                        H2z.data.push({
                            value: J1z,
                            display: b2z[J1z]
                        });
                    }
                    f2z[0].push(H2z);
                }
                y2z = e1z;
                return {
                    wheels: f2z,
                    minWidth: k1z && B1z ? 70 : 80,
                    showLabel: false,
                    formatValue: Z2z,
                    compClass: 'mbsc-msr',
                    parseValue: function(i6z) {
                        var x6z = (typeof i6z === 'number' ? i6z + '' : i6z) || o1z.defaultValue,
                            P6z = (x6z + '').split(' '),
                            w6z = +P6z[0],
                            F6z = [],
                            a6z, K6z = '';
                        if (r1z) {
                            K6z = Y1z.inArray(P6z[1], b2z);
                            K6z = K6z == -1 ? Y1z.inArray(D1z, o1z.units) : K6z;
                            K6z = K6z == -1 ? 0 : K6z;
                        }
                        R2z = r1z ? o1z.units[K6z] : '';
                        C2z(R2z);
                        w6z = isNaN(w6z) ? 0 : w6z;
                        w6z = E2z(w6z, n1z, G1z);
                        a6z = q2z(w6z);
                        a6z[1] = E2z(a6z[1], s1z, h1z);
                        V1z = w6z;
                        if (k1z) {
                            F6z[0] = a6z[0];
                            a6z[1] = Math.abs(a6z[1]);
                        }
                        F6z[O1z] = a6z[1];
                        if (B1z) {
                            F6z[S1z] = a6z[2];
                        }
                        if (r1z) {
                            F6z[y2z] = K6z;
                        }
                        return F6z;
                    },
                    onCancel: function() {
                        V1z = X1z;
                    },
                    validate: function(m6z) {
                        var U6z, d6z, Y6z, Z6z, Q6z, C6z = m6z.values,
                            t6z = m6z.index,
                            L6z = m6z.direction,
                            M6z = {},
                            E6z = [],
                            p6z = {},
                            A6z = r1z ? o1z.units[C6z[y2z]] : '';
                        if (k1z && t6z === 0) {
                            V1z = Math.abs(V1z) * (C6z[0] == '-' ? -1 : 1);
                        }
                        if (t6z === O1z || t6z === S1z && B1z || V1z === X1z || t6z === X1z) {
                            V1z = t2z(C6z);
                            R2z = A6z;
                        }
                        if (r1z && (t6z === y2z && R2z !== A6z) || t6z === X1z) {
                            C2z(A6z);
                            V1z = N2z(V1z, R2z, A6z);
                            R2z = A6z;
                            d6z = q2z(V1z);
                            if (t6z !== X1z) {
                                p6z[O1z] = z2z;
                                W1z.changeWheel(p6z);
                            }
                            if (k1z) {
                                C6z[0] = d6z[0];
                            }
                        }
                        E6z[O1z] = [];
                        if (k1z) {
                            E6z[0] = [];
                            if (n1z > 0) {
                                E6z[0].push('-');
                                C6z[0] = '+';
                            }
                            if (G1z < 0) {
                                E6z[0].push('+');
                                C6z[0] = '-';
                            }
                            Q6z = Math.abs(C6z[0] == '-' ? s1z : h1z);
                            for (e1z = Q6z + I1z; e1z < Q6z + 20 * I1z; e1z += I1z) {
                                E6z[O1z].push(e1z);
                                M6z[e1z] = true;
                            }
                        }
                        V1z = E2z(V1z, n1z, G1z);
                        d6z = q2z(V1z);
                        Y6z = k1z ? Math.abs(d6z[1]) : d6z[1];
                        U6z = k1z ? C6z[0] == '-' : V1z < 0;
                        C6z[O1z] = Y6z;
                        if (U6z) {
                            d6z[0] = '-';
                        }
                        if (B1z) {
                            C6z[S1z] = d6z[2];
                        }
                        Y1z.each(B1z ? g1z : o1z.invalid, function(J6z, o6z) {
                            if (k1z && U6z) {
                                if (o6z <= 0) {
                                    o6z = Math.abs(o6z);
                                } else {
                                    return;
                                }
                            }
                            o6z = x2z(N2z(o6z, D1z, A6z), B1z ? 1 : j1z);
                            M6z[o6z] = true;
                            E6z[O1z].push(o6z);
                        });
                        C6z[O1z] = W1z.getValidValue(O1z, Y6z, L6z, M6z);
                        d6z[1] = C6z[O1z] * (k1z && U6z ? -1 : 1);
                        if (B1z) {
                            E6z[S1z] = [];
                            var X6z = k1z ? C6z[0] + C6z[1] : (V1z < 0 ? '-' : '+') + Math.abs(d6z[1]),
                                u6z = (n1z < 0 ? '-' : '+') + Math.abs(s1z),
                                v6z = (G1z < 0 ? '-' : '+') + Math.abs(h1z);
                            if (X6z === u6z) {
                                Y1z(F2z).each(function(B6z, k6z) {
                                    if (U6z ? k6z > d2z : k6z < d2z) {
                                        E6z[S1z].push(k6z);
                                    }
                                });
                            }
                            if (X6z === v6z) {
                                Y1z(F2z).each(function(O6z, V6z) {
                                    if (U6z ? V6z < P2z : V6z > P2z) {
                                        E6z[S1z].push(V6z);
                                    }
                                });
                            }
                            Y1z.each(o1z.invalid, function(s6z, I6z) {
                                Z6z = q2z(N2z(I6z, D1z, A6z));
                                if ((d6z[0] === Z6z[0] || d6z[1] === 0 && Z6z[1] === 0 && Z6z[2] === 0) && d6z[1] === Z6z[1]) {
                                    E6z[S1z].push(Z6z[2]);
                                }
                            });
                        }
                        return {
                            disabled: E6z,
                            valid: C6z
                        };
                    }
                };
            };
            L1z.presetShort('measurement');
        }());
        (function() {
            var e6z = R,
                r6z = e6z.$,
                G6z = e6z.presets.scroller,
                j6z = {
                    min: 0,
                    max: 100,
                    defaultUnit: 'km',
                    units: ['m', 'km', 'in', 'ft', 'yd', 'mi']
                },
                n6z = {
                    mm: 0.001,
                    cm: 0.01,
                    dm: 0.1,
                    m: 1,
                    dam: 10,
                    hm: 100,
                    km: 1000,
                    'in': 0.0254,
                    ft: 0.3048,
                    yd: 0.9144,
                    ch: 20.1168,
                    fur: 201.168,
                    mi: 1609.344,
                    lea: 4828.032
                };
            e6z.presetShort('distance');
            G6z.distance = function(g6z) {
                var h6z = r6z.extend({}, j6z, g6z.settings);
                r6z.extend(g6z.settings, h6z, {
                    sign: false,
                    convert: function(S6z, D6z, W6z) {
                        return S6z * n6z[D6z] / n6z[W6z];
                    }
                });
                return G6z.measurement.call(this, g6z);
            };
        }());
        (function() {
            var R4z = R,
                z4z = R4z.$,
                N4z = R4z.presets.scroller,
                f4z = {
                    min: 0,
                    max: 100,
                    defaultUnit: 'N',
                    units: ['N', 'kp', 'lbf', 'pdl']
                },
                T4z = {
                    N: 1,
                    kp: 9.80665,
                    lbf: 4.448222,
                    pdl: 0.138255
                };
            R4z.presetShort('force');
            N4z.force = function(y4z) {
                var b4z = z4z.extend({}, f4z, y4z.settings);
                z4z.extend(y4z.settings, b4z, {
                    sign: false,
                    convert: function(l4z, H4z, q4z) {
                        return l4z * T4z[H4z] / T4z[q4z];
                    }
                });
                return N4z.measurement.call(this, y4z);
            };
        }());
        (function() {
            var c4z = R,
                K4z = c4z.$,
                w4z = c4z.presets.scroller,
                F4z = {
                    min: 0,
                    max: 1000,
                    defaultUnit: 'kg',
                    units: ['g', 'kg', 'oz', 'lb'],
                    unitNames: {
                        tlong: 't (long)',
                        tshort: 't (short)'
                    }
                },
                a4z = {
                    mg: 0.001,
                    cg: 0.01,
                    dg: 0.1,
                    g: 1,
                    dag: 10,
                    hg: 100,
                    kg: 1000,
                    t: 1000000,
                    drc: 1.7718452,
                    oz: 28.3495,
                    lb: 453.59237,
                    st: 6350.29318,
                    qtr: 12700.58636,
                    cwt: 50802.34544,
                    tlong: 1016046.9088,
                    tshort: 907184.74
                };
            c4z.presetShort('mass');
            w4z.mass = function(i4z) {
                var P4z = K4z.extend({}, F4z, i4z.settings);
                K4z.extend(i4z.settings, P4z, {
                    sign: false,
                    convert: function(x4z, C4z, d4z) {
                        return x4z * a4z[C4z] / a4z[d4z];
                    }
                });
                return w4z.measurement.call(this, i4z);
            };
        }());
        (function() {
            var E4z = R,
                A4z = E4z.$,
                t4z = E4z.presets.scroller,
                Z4z = {
                    min: 0,
                    max: 100,
                    defaultUnit: 'kph',
                    units: ['kph', 'mph', 'mps', 'fps', 'knot'],
                    unitNames: {
                        kph: 'km/h',
                        mph: 'mi/h',
                        mps: 'm/s',
                        fps: 'ft/s',
                        knot: 'knot'
                    }
                },
                U4z = {
                    kph: 1,
                    mph: 1.60934,
                    mps: 3.6,
                    fps: 1.09728,
                    knot: 1.852
                };
            E4z.presetShort('speed');
            t4z.speed = function(M4z) {
                var Q4z = A4z.extend({}, Z4z, M4z.settings);
                A4z.extend(M4z.settings, Q4z, {
                    sign: false,
                    convert: function(m4z, p4z, Y4z) {
                        return m4z * U4z[p4z] / U4z[Y4z];
                    }
                });
                return t4z.measurement.call(this, M4z);
            };
        }());
        (function() {
            var X4z = R,
                L4z = X4z.$,
                v4z = X4z.presets.scroller,
                u4z = {
                    min: -20,
                    max: 40,
                    defaultUnit: 'c',
                    units: ['c', 'k', 'f', 'r'],
                    unitNames: {
                        c: '°C',
                        k: 'K',
                        f: '°F',
                        r: '°R'
                    }
                },
                o4z = {
                    c2k: function(J4z) {
                        return J4z + 273.15;
                    },
                    c2f: function(k4z) {
                        return k4z * 9 / 5 + 32;
                    },
                    c2r: function(B4z) {
                        return (B4z + 273.15) * 9 / 5;
                    },
                    k2c: function(V4z) {
                        return V4z - 273.15;
                    },
                    k2f: function(O4z) {
                        return O4z * 9 / 5 - 459.67;
                    },
                    k2r: function(I4z) {
                        return I4z * 9 / 5;
                    },
                    f2c: function(s4z) {
                        return (s4z - 32) * 5 / 9;
                    },
                    f2k: function(e4z) {
                        return (e4z + 459.67) * 5 / 9;
                    },
                    f2r: function(r4z) {
                        return r4z + 459.67;
                    },
                    r2c: function(G4z) {
                        return (G4z - 491.67) * 5 / 9;
                    },
                    r2k: function(n4z) {
                        return n4z * 5 / 9;
                    },
                    r2f: function(j4z) {
                        return j4z - 459.67;
                    }
                };
            X4z.presetShort('temperature');
            v4z.temperature = function(g4z) {
                var h4z = L4z.extend({}, u4z, g4z.settings);
                L4z.extend(g4z.settings, h4z, {
                    sign: true,
                    convert: function(S4z, D4z, W4z) {
                        return o4z[D4z + '2' + W4z](S4z);
                    }
                });
                return v4z.measurement.call(this, g4z);
            };
        }());
        (function(y7z, l7z, b7z) {
            var z7z = R,
                R7z = z7z.$,
                T7z = R7z.extend,
                N7z = z7z.classes,
                f7z = 1;
            N7z.MenuStrip = function(Q7z, s7z) {
                function o7z(c8z, K8z) {
                    var H8z = q7z.itemWidth,
                        q8z = q7z.layout;
                    H7z.contWidth = c7z = K7z.width();
                    if (c8z && V7z === c7z || !c7z) {
                        return;
                    }
                    V7z = c7z;
                    if (z7z.util.isNumeric(q8z)) {
                        i7z = c7z ? c7z / q8z : H8z;
                        if (i7z < H8z) {
                            q8z = 'liquid';
                        }
                    }
                    if (H8z) {
                        if (q8z == 'liquid') {
                            i7z = c7z ? c7z / Math.min(Math.floor(c7z / H8z), w7z.children().length) : H8z;
                        } else if (q8z == 'fixed') {
                            i7z = H8z;
                        }
                    }
                    if (i7z) {
                        w7z.children().css('width', i7z + 'px');
                    }
                    if (q7z.display != 'inline') {
                        A7z.find('.mbsc-page').css('padding-' + q7z.display, Q7z.offsetHeight + 'px');
                    }
                    H7z.totalWidth = C7z = Q7z.offsetWidth;
                    T7z(P7z.settings, {
                        contSize: c7z,
                        maxSnapScroll: q7z.paging ? 1 : false,
                        maxScroll: 0,
                        minScroll: C7z > c7z ? c7z - C7z : 0,
                        snap: q7z.paging ? c7z : q7z.snap ? i7z || '.mbsc-ms-item' : false,
                        elastic: C7z > c7z ? i7z || c7z : false
                    });
                    P7z.refresh(K8z);
                }

                function e7z() {
                    w7z.find('.mbsc-ripple').remove();
                    w7z.children().each(function(l8z) {
                        var y8z, z8z = R7z(this),
                            T8z = M7z && z8z.attr('data-selected') == 'true',
                            b8z = z8z.attr('data-disabled') == 'true',
                            f8z = z8z.attr('data-icon'),
                            N8z = z8z.attr('data-ref');
                        if (!N8z) {
                            N8z = f7z++;
                        }
                        if (l8z === 0) {
                            X7z = z8z;
                        }
                        if (M7z && !x7z && T8z) {
                            a7z = z8z;
                        }
                        if (f8z) {
                            I7z = true;
                        }
                        if (z8z.text()) {
                            O7z = true;
                        }
                        y8z = 'mbsc-ms-item mbsc-btn-e ' + (q7z.itemClass || '') + (T8z ? t7z : '') + (b8z ? ' mbsc-btn-d ' + (q7z.disabledClass || '') : '') + (f8z ? ' mbsc-ms-ic mbsc-ic mbsc-ic-' + f8z : '');
                        z8z.attr('data-ref', N8z).attr('data-role', 'button').attr('aria-selected', T8z ? 'true' : 'false').attr('aria-disabled', b8z ? 'true' : 'false').removeClass(m7z[N8z]).addClass(y8z);
                        m7z[N8z] = y8z;
                    });
                    if (I7z) {
                        K7z.addClass('mbsc-ms-icons');
                    }
                    if (O7z) {
                        K7z.addClass('mbsc-ms-txt');
                    }
                }

                function E7z(R8z) {
                    if (typeof R8z !== 'object') {
                        R8z = w7z.children('[data-id="' + R8z + '"]');
                    }
                    return R7z(R8z);
                }

                function Z7z(W7z) {
                    W7z.removeClass(t7z).removeAttr('data-selected').removeAttr('aria-selected');
                }

                function L7z(D7z) {
                    D7z.addClass(t7z).attr('data-selected', 'true').attr('aria-selected', 'true');
                }

                function U7z(G7z, g7z) {
                    if (!G7z.length) {
                        return;
                    }
                    var h7z = G7z.offset().left,
                        n7z = G7z[0].offsetLeft,
                        j7z = G7z[0].offsetWidth,
                        S7z = K7z.offset().left;
                    a7z = G7z;
                    if (g7z === b7z) {
                        g7z = !x7z;
                    }
                    if (M7z && g7z) {
                        if (x7z) {
                            if (G7z.attr('data-selected')) {
                                Z7z(G7z);
                            } else {
                                L7z(G7z);
                            }
                        } else {
                            Z7z(R7z('.mbsc-ms-item-sel', w7z));
                            L7z(G7z);
                        }
                    }
                    if (d7z) {
                        n7z = C7z - n7z - j7z;
                    }
                    if (k7z == 'a') {
                        if (h7z < S7z) {
                            P7z.scroll(d7z ? n7z + j7z - c7z : -n7z, p7z, true);
                        } else if (h7z + j7z > S7z + c7z) {
                            P7z.scroll(d7z ? n7z : c7z - n7z - j7z, p7z, true);
                        }
                    } else {
                        P7z.scroll(c7z / 2 - n7z - j7z / 2, p7z, true);
                    }
                    if (g7z) {
                        F7z('onItemTap', {
                            target: G7z[0]
                        });
                    }
                }

                function Y7z(r7z) {
                    clearTimeout(B7z);
                    B7z = setTimeout(function() {
                        o7z(r7z.type !== 'load');
                    }, 200);
                }
                var a7z, K7z, A7z, X7z, v7z, u7z, c7z, I7z, O7z, i7z, x7z, V7z, B7z, d7z, M7z, t7z, P7z, k7z, q7z, C7z, J7z, F7z, m7z = {},
                    p7z = 1000,
                    H7z = this,
                    w7z = R7z(Q7z);
                N7z.Base.call(this, Q7z, s7z, true);
                H7z.navigate = function(w8z, a8z) {
                    U7z(E7z(w8z), a8z);
                };
                H7z.next = function(i8z) {
                    var F8z = a7z ? a7z.next() : X7z;
                    if (F8z.length) {
                        a7z = F8z;
                        U7z(a7z, i8z);
                    }
                };
                H7z.prev = function(x8z) {
                    var P8z = a7z ? a7z.prev() : X7z;
                    if (P8z.length) {
                        a7z = P8z;
                        U7z(a7z, x8z);
                    }
                };
                H7z.select = function(C8z) {
                    if (!x7z) {
                        Z7z(R7z('.mbsc-ms-item-sel', w7z));
                    }
                    L7z(E7z(C8z));
                };
                H7z.deselect = function(d8z) {
                    Z7z(E7z(d8z));
                };
                H7z.enable = function(E8z) {
                    E7z(E8z).removeClass('mbsc-btn-d').removeAttr('data-disabled').removeAttr('aria-disabled');
                };
                H7z.disable = function(A8z) {
                    E7z(A8z).addClass('mbsc-btn-d').attr('data-disabled', 'true').attr('aria-disabled', 'true');
                };
                H7z.refresh = H7z.position = function(t8z) {
                    e7z();
                    o7z(false, t8z);
                };
                H7z._init = function() {
                    A7z = R7z(q7z.context);
                    v7z = R7z(q7z.context == 'body' ? y7z : q7z.context);
					
					if (q7z.type == 'tabs') {
						q7z.select = q7z.select || 'single';
						q7z.variant = q7z.variant || 'b';
					} else if (g.type == 'options') {
						q7z.select = q7z.select || 'multiple';
						q7z.variant = q7z.variant || 'a';
					} else if (g.type == 'menu') {
						q7z.select = q7z.select || 'off';
						q7z.variant = q7z.variant || 'a';
					}
					if (q7z.itemWidth && q7z.snap === b7z) {
						q7z.snap = true;
					}
                    k7z = q7z.variant;
                    M7z = q7z.select != 'off';
                    x7z = q7z.select == 'multiple';
                    t7z = ' mbsc-ms-item-sel ' + (q7z.activeClass || '');
                    d7z = q7z.rtl;
				    u7z = 'mbsc-ms-c' + ' mbsc-ms-' + k7z + ' mbsc-ms-' + q7z.display + ' mbsc-' + q7z.theme + ' ' + (q7z.baseTheme ? ' mbsc-' + q7z.baseTheme : '') + ' ' + (q7z.cssClass || '') + ' ' + (q7z.wrapperClass || '') + (d7z ? ' mbsc-ms-rtl' : ' mbsc-ms-ltr') + (q7z.itemWidth ? ' mbsc-ms-hasw' : '') + (q7z.context == 'body' ? '' : ' mbsc-ms-ctx') + (M7z ? '' : ' mbsc-ms-nosel');                 
                    if (!K7z) {
                        K7z = R7z('<div class="' + u7z + '"><div class="mbsc-ms-sc"></div></div>').insertAfter(w7z);
                        K7z.find('.mbsc-ms-sc').append(w7z);
                        P7z = new z7z.classes.ScrollView(K7z[0], {
                            axis: 'X',
                            contSize: 0,
                            maxScroll: 0,
                            maxSnapScroll: 1,
                            minScroll: 0,
                            snap: 1,
                            elastic: 1,
                            rtl: d7z,
                            mousewheel: q7z.mousewheel,
                            onStart: function(U8z) {
                                if (!J7z && U8z.domEvent.type == 'touchstart') {
                                    J7z = true;
                                    A7z.find('.mbsc-no-touch').removeClass('mbsc-no-touch');
                                }
                            },
                            onBtnTap: function(Z8z) {
                                U7z(R7z(Z8z.target), true);
                            },
                            onGestureStart: function(M8z) {
                                F7z('onGestureStart', M8z);
                            },
                            onGestureEnd: function(Q8z) {
                                F7z('onGestureEnd', Q8z);
                            },
                            onMove: function(m8z) {
                                F7z('onMove', m8z);
                            },
                            onAnimationStart: function(p8z) {
                                F7z('onAnimationStart', p8z);
                            },
                            onAnimationEnd: function(Y8z) {
                                F7z('onAnimationEnd', Y8z);
                            }
                        });
                    } else {
                        K7z.attr('class', u7z);
                    }
                    w7z.css('display', '').addClass('mbsc-ms ' + (q7z.groupClass || ''));
                    e7z();
                    F7z('onMarkupReady', {
                        target: K7z[0]
                    });
                    o7z();
                    K7z.find('img').on('load', Y7z);
                    v7z.on('orientationchange resize', Y7z);
                };
                H7z._destroy = function() {
                    if (q7z.display != 'inline') {
                        A7z.find('.mbsc-page').css('padding-' + q7z.display, '');
                    }
                    v7z.off('orientationchange resize', Y7z);
                    w7z.removeClass('mbsc-ms mbsc-ms-a mbsc-ms-b').insertAfter(K7z).find('.mbsc-ms-item').each(function() {
                        var X8z = R7z(this);
                        X8z.width('').removeClass(m7z[X8z.attr('data-ref')]);
                    });
                    K7z.remove();
                    P7z.destroy();
                };
                q7z = H7z.settings;
                F7z = H7z.trigger;
                H7z.init(s7z);
            };
            N7z.MenuStrip.prototype = {
                _class: 'menustrip',
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _defaults: {
                    context: 'body',
                    type: 'options',
                    display: 'inline',
                    layout: 'liquid'
                }
            };
            z7z.presetShort('menustrip', 'MenuStrip');
        }(window, document));
        (function() {
            var L8z = R,
                v8z = L8z.presets.scroller;
            v8z.number = v8z.measurement;
            L8z.presetShort('number');
        }());
        (function(o8z) {
            var J8z = R,
                u8z = J8z.$,
                V8z = J8z.util,
                I8z = V8z.testTouch,
                k8z = V8z.getCoord,
                s8z = V8z.isNumeric,
                O8z = function() {},
                B8z = J8z.classes;
            B8z.Numpad = function(D8z, Q9z, X9z) {
                function F9z(l3z) {
                    if (l9z) {
                        l3z.preventDefault();
                        m9z();
                        if (l3z.type === 'mouseup') {
                            u8z(document).off('mousemove', K9z).off('mouseup', F9z);
                        }
                    }
                }

                function K9z(b3z) {
                    if (l9z) {
                        E9z = k8z(b3z, 'X');
                        C9z = k8z(b3z, 'Y');
                        Z9z = E9z - t9z;
                        x9z = C9z - A9z;
                        if (Math.abs(Z9z) > 7 || Math.abs(x9z) > 7) {
                            m9z();
                        }
                    }
                }

                function Y9z(y3z) {
                    if (I8z(y3z, this)) {
                        p9z(y3z);
                        if (y3z.type === 'mousedown') {
                            u8z(document).on('mousemove', K9z).on('mouseup', F9z);
                        }
                    }
                }

                function m9z() {
                    clearInterval(H9z);
                    l9z = false;
                }

                function p9z(f3z) {
                    l9z = true;
                    t9z = k8z(f3z, 'X');
                    A9z = k8z(f3z, 'Y');
                    clearInterval(H9z);
                    clearTimeout(H9z);
                    w9z();
                    H9z = setInterval(function() {
                        w9z();
                    }, 150);
                }

                function w9z() {
                    var N3z, T3z, z3z = n8z.pop();
                    if (g8z || z3z !== 'digit') {
                        if (z3z !== 'digit' && j8z[z3z]) {
                            delete j8z[z3z];
                            T3z = n8z.slice(0);
                            n8z = [];
                            for (N3z = 0; N3z < T3z.length; N3z++) {
                                if (T3z[N3z] !== z3z) {
                                    n8z.push(T3z[N3z]);
                                }
                            }
                        } else {
                            G8z.pop();
                        }
                        R9z(true);
                    }
                }

                function M9z(D9z) {
                    var h9z, g9z, S9z = D9z.attr('data-val'),
                        R3z = D9z.attr('data-track') !== 'false',
                        W9z = D9z.attr('data-var');
                    if (!D9z.hasClass('mbsc-fr-btn-d')) {
                        if (W9z) {
                            g9z = W9z.split(':');
                            if (R3z) {
                                n8z.push(g9z[0]);
                            }
                            j8z[g9z[0]] = g9z[2] === o8z ? g9z[1] : j8z[g9z[0]] == g9z[1] ? g9z[2] : g9z[1];
                        }
                        if (S9z.length + g8z <= q9z) {
                            for (h9z = 0; h9z < S9z.length; ++h9z) {
                                g9z = s8z(S9z[h9z]) ? +S9z[h9z] : S9z[h9z];
                                if (r8z.allowLeadingZero || g8z || g9z) {
                                    n8z.push('digit');
                                    G8z.push(g9z);
                                    g8z = G8z.length;
                                }
                            }
                        }
                        R9z(true);
                    }
                }

                function P9z(n9z, j9z) {
                    if (!g8z && !j9z && !r8z.allowLeadingZero || n9z.hasClass('mbsc-fr-btn-d') || n9z.hasClass('mbsc-np-btn-empty')) {
                        return;
                    }
                    if (g8z < h8z) {
                        n8z.push('digit');
                        G8z.push(j9z);
                        R9z(true);
                    }
                }

                function U9z(G9z) {
                    var I9z, e9z, s9z = G9z || [],
                        r9z = [];
                    n8z = [];
                    j8z = {};
                    for (I9z = 0; I9z < s9z.length; I9z++) {
                        if (/:/.test(s9z[I9z])) {
                            e9z = s9z[I9z].split(':');
                            j8z[e9z[0]] = e9z[1];
                            n8z.push(e9z[0]);
                        } else {
                            r9z.push(s9z[I9z]);
                            n8z.push('digit');
                        }
                    }
                    return r9z;
                }

                function T9z(B9z, V9z, k9z, O9z) {
                    if (V9z) {
                        R9z();
                    }
                    if (!O9z) {
                        b9z = G8z.slice(0);
                        a9z = u8z.extend({}, j8z);
                        i9z = n8z.slice(0);
                        e8z._value = e8z._hasValue ? e8z._tempValue : null;
                    }
                    if (B9z) {
                        if (e8z._isInput) {
                            W8z.val(e8z._hasValue && e8z._isValid ? e8z._value : '');
                        }
                        c9z('onFill', {
                            valueText: e8z._hasValue ? e8z._tempValue : '',
                            change: k9z
                        });
                        if (k9z) {
                            e8z._preventChange = true;
                            W8z.trigger('change');
                        }
                    }
                }

                function R9z(u9z) {
                    var L9z, v9z = r8z.validate.call(D8z, {
                            values: G8z.slice(0),
                            variables: j8z
                        }, e8z) || [],
                        o9z = v9z && v9z.disabled || [];
                    e8z._isValid = v9z.invalid ? false : true;
                    e8z._tempValue = r8z.formatValue.call(D8z, G8z.slice(0), j8z, e8z);
                    g8z = G8z.length;
                    q9z = v9z.length || h8z;
                    if (e8z._isVisible && R.CsDrb) {
                        u8z('.mbsc-np-ph', S8z).each(function(J9z) {
                            u8z(this).html(r8z.fill == 'ltr' ? J9z >= g8z ? y9z : z9z || G8z[J9z] : J9z >= h8z - q9z ? J9z + g8z < h8z ? y9z : z9z || G8z[J9z + g8z - h8z] : '');
                        });
                        u8z('.mbsc-np-cph', S8z).each(function() {
                            u8z(this).html(j8z[u8z(this).attr('data-var')] || u8z(this).attr('data-ph'));
                        });
                        if (g8z === h8z) {
                            for (L9z = 0; L9z <= 9; L9z++) {
                                o9z.push(L9z);
                            }
                        }
                        u8z('.mbsc-np-btn', S8z).removeClass(N9z);
                        for (L9z = 0; L9z < o9z.length; L9z++) {
                            u8z('.mbsc-np-btn[data-val="' + o9z[L9z] + '"]', S8z).addClass(N9z);
                        }
                        if (e8z._isValid) {
                            u8z('.mbsc-fr-btn-s .mbsc-fr-btn', S8z).removeClass(N9z);
                        } else {
                            u8z('.mbsc-fr-btn-s .mbsc-fr-btn', S8z).addClass(N9z);
                        }
                        if (e8z.live) {
                            e8z._hasValue = u9z || e8z._hasValue;
                            T9z(u9z, false, u9z);
                            if (u9z) {
                                c9z('onSet', {
                                    valueText: e8z._value
                                });
                            }
                        }
                    }
                }
                var S8z, N9z, y9z, g8z, r8z, z9z, t9z, A9z, E9z, C9z, Z9z, x9z, l9z, H9z, G8z, q9z, c9z, h8z, b9z, W8z = u8z(D8z),
                    e8z = this,
                    i9z = [],
                    n8z = [],
                    j8z = {},
                    a9z = {},
                    d9z = {
                        107: '+',
                        109: '-'
                    },
                    f9z = {
                        48: 0,
                        49: 1,
                        50: 2,
                        51: 3,
                        52: 4,
                        53: 5,
                        54: 6,
                        55: 7,
                        56: 8,
                        57: 9,
                        96: 0,
                        97: 1,
                        98: 2,
                        99: 3,
                        100: 4,
                        101: 5,
                        102: 6,
                        103: 7,
                        104: 8,
                        105: 9
                    };
                B8z.Frame.call(this, D8z, Q9z, true);
                e8z.setVal = e8z._setVal = function(H3z, q3z, c3z, K3z) {
                    e8z._hasValue = H3z !== null && H3z !== o8z;
                    G8z = U9z(u8z.isArray(H3z) ? H3z.slice(0) : r8z.parseValue.call(D8z, H3z, e8z));
                    T9z(q3z, true, c3z === o8z ? q3z : c3z, K3z);
                };
                e8z.getVal = e8z._getVal = function(w3z) {
                    return e8z._hasValue || w3z ? e8z[w3z ? '_tempValue' : '_value'] : null;
                };
                e8z.setArrayVal = e8z.setVal;
                e8z.getArrayVal = function(a3z) {
                    return a3z ? G8z.slice(0) : e8z._hasValue ? b9z.slice(0) : null;
                };
                e8z._readValue = function() {
                    var F3z = W8z.val() || '';
                    if (F3z !== '') {
                        e8z._hasValue = true;
                    }
                    if (z9z) {
                        j8z = {};
                        n8z = [];
                        G8z = [];
                    } else {
                        j8z = e8z._hasValue ? a9z : {};
                        n8z = e8z._hasValue ? i9z : [];
                        G8z = e8z._hasValue && b9z ? b9z.slice(0) : U9z(r8z.parseValue.call(D8z, F3z, e8z));
                        T9z(false, true);
                    }
                };
                e8z._fillValue = function() {
                    e8z._hasValue = true;
                    T9z(true, false, true);
                };
                e8z._generateContent = function() {
                    var d3z, E3z, x3z, P3z = 1,
                        C3z = '',
                        i3z = '';
                    i3z += '<div class="mbsc-np-hdr"><div role="button" tabindex="0" aria-label="' + r8z.deleteText + '" class="mbsc-np-del mbsc-fr-btn-e mbsc-ic mbsc-ic-' + r8z.deleteIcon + '"></div><div class="mbsc-np-dsp">';
                    C3z = r8z.template.replace(/d/g, '<span class="mbsc-np-ph">' + y9z + '</span>').replace(/&#100;/g, 'd');
                    C3z = C3z.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g, '<span class="mbsc-np-cph" data-var="$1" data-ph="$2">$2</span>');
                    i3z += C3z;
                    i3z += '</div></div>';
                    i3z += '<div class="mbsc-np-tbl-c mbsc-w-p"><div class="mbsc-np-tbl">';
                    for (d3z = 0; d3z < 4; d3z++) {
                        i3z += '<div class="mbsc-np-row">';
                        for (E3z = 0; E3z < 3; E3z++) {
                            x3z = P3z;
                            if (P3z == 10 || P3z == 12) {
                                x3z = '';
                            } else if (P3z == 11) {
                                x3z = 0;
                            }
                            if (x3z === '') {
                                if (P3z == 10 && r8z.leftKey) {
                                    i3z += '<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom mbsc-fr-btn-e" ' + (r8z.leftKey.variable ? 'data-var="' + r8z.leftKey.variable + '"' : '') + ' data-val="' + (r8z.leftKey.value || '') + '" ' + (r8z.leftKey.track !== o8z ? ' data-track="' + r8z.leftKey.track + '"' : '') + '>' + r8z.leftKey.text + '</div>';
                                } else if (P3z == 12 && r8z.rightKey) {
                                    i3z += '<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom mbsc-fr-btn-e" ' + (r8z.rightKey.variable ? 'data-var="' + r8z.rightKey.variable + '"' : '') + ' data-val="' + (r8z.rightKey.value || '') + '" ' + (r8z.rightKey.track !== o8z ? ' data-track="' + r8z.rightKey.track + '"' : '') + ' >' + r8z.rightKey.text + '</div>';
                                } else {
                                    i3z += '<div class="mbsc-np-btn mbsc-np-btn-empty"></div>';
                                }
                            } else {
                                i3z += '<div tabindex="0" role="button" class="mbsc-np-btn mbsc-fr-btn-e" data-val="' + x3z + '">' + x3z + '</div>';
                            }
                            P3z++;
                        }
                        i3z += '</div>';
                    }
                    i3z += '</div></div>';
                    return i3z;
                };
                e8z._markupReady = function() {
                    S8z = e8z._markup;
                    R9z();
                };
                e8z._attachEvents = function(A3z) {
                    A3z.on('keydown', function(t3z) {
                        var U3z;
                        if (d9z[t3z.keyCode] !== o8z) {
                            U3z = u8z('.mbsc-np-btn[data-var="sign:-:"]', A3z);
                            if (U3z.length) {
                                j8z.sign = t3z.keyCode == 107 ? '-' : '';
                                M9z(U3z);
                            }
                        } else if (f9z[t3z.keyCode] !== o8z) {
                            P9z(u8z('.mbsc-np-btn[data-val="' + f9z[t3z.keyCode] + '"]', A3z), f9z[t3z.keyCode]);
                        } else if (t3z.keyCode == 8) {
                            t3z.preventDefault();
                            w9z();
                        }
                    });
                    e8z.tap(u8z('.mbsc-np-btn', A3z), function() {
                        var Z3z = u8z(this);
                        if (Z3z.hasClass('mbsc-np-btn-custom')) {
                            M9z(Z3z);
                        } else {
                            P9z(Z3z, +Z3z.attr('data-val'));
                        }
                    }, false, 30, true);
                    u8z('.mbsc-np-del', A3z).on('touchstart mousedown keydown', Y9z).on('touchmove mousemove', K9z).on('keyup mouseup touchend', F9z);
                };
                e8z.__init = function() {
                    r8z = e8z.settings;
                    r8z.cssClass = (r8z.cssClass || '') + ' mbsc-np';
                    r8z.template = r8z.template.replace(/\\d/, '&#100;');
                    y9z = r8z.placeholder;
                    h8z = (r8z.template.match(/d/g) || []).length;
                    N9z = 'mbsc-fr-btn-d ' + (r8z.disabledClass || '');
                    z9z = r8z.mask;
                    c9z = e8z.trigger;
                    if (z9z && W8z.is('input')) {
                        W8z.attr('type', 'password');
                    }
                };
                e8z._indexOf = function(Q3z, m3z) {
                    var M3z;
                    for (M3z = 0; M3z < Q3z.length; ++M3z) {
                        if (Q3z[M3z].toString() === m3z.toString()) {
                            return M3z;
                        }
                    }
                    return -1;
                };
                if (!X9z) {
                    e8z.init(Q9z);
                }
            };
            B8z.Numpad.prototype = {
                _hasDef: true,
                _hasTheme: true,
                _hasLang: true,
                _hasPreset: true,
                _class: 'numpad',
                _defaults: u8z.extend({}, B8z.Frame.prototype._defaults, {
                    template: 'dd.dd',
                    placeholder: '0',
                    deleteIcon: 'backspace',
                    allowLeadingZero: false,
                    headerText: false,
                    fill: 'rtl',
                    deleteText: 'Delete',
                    decimalSeparator: '.',
                    thousandsSeparator: ',',
                    validate: O8z,
                    parseValue: O8z,
                    formatValue: function(k3z, V3z, B3z) {
                        var Y3z, L3z = 1,
                            o3z = B3z.settings,
                            J3z = o3z.placeholder,
                            v3z = o3z.template,
                            u3z = k3z.length,
                            X3z = v3z.length,
                            p3z = '';
                        for (Y3z = 0; Y3z < X3z; Y3z++) {
                            if (v3z[X3z - Y3z - 1] == 'd') {
                                if (L3z <= u3z) {
                                    p3z = k3z[u3z - L3z] + p3z;
                                } else {
                                    p3z = J3z + p3z;
                                }
                                L3z++;
                            } else {
                                p3z = v3z[X3z - Y3z - 1] + p3z;
                            }
                        }
                        u8z.each(V3z, function(O3z, I3z) {
                            p3z = p3z.replace('{' + O3z + '}', I3z);
                        });
                        return u8z('<div>' + p3z + '</div>').text();
                    }
                })
            };
            J8z.themes.numpad = J8z.themes.frame;
            J8z.presetShort('numpad', 'Numpad', false);
        }());
        (function() {
            var s3z = R,
                e3z = s3z.$,
                r3z = s3z.presets.numpad,
                G3z = {
                    min: 0,
                    max: 99.99,
                    scale: 2,
                    prefix: '',
                    suffix: '',
                    returnAffix: false
                };
            r3z.decimal = function(j3z) {
                function S3z(y0z) {
                    var f0z = g3z(y0z).toFixed(n3z.scale).replace('.', n3z.decimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g, n3z.thousandsSeparator);
                    return f0z;
                }

                function g3z(N0z, T0z) {
                    var R0z, z0z = N0z.slice(0),
                        W3z = 0;
                    while (z0z.length) {
                        W3z = W3z * 10 + z0z.shift();
                    }
                    for (R0z = 0; R0z < n3z.scale; R0z++) {
                        W3z /= 10;
                    }
                    return T0z ? W3z * -1 : W3z;
                }
                var D3z = e3z.extend({}, j3z.settings),
                    n3z = e3z.extend(j3z.settings, G3z, D3z),
                    h3z = n3z.min < 0;
                j3z.getVal = function(l0z) {
                    var b0z = j3z._getVal(l0z);
                    return s3z.util.isNumeric(b0z) ? +b0z : b0z;
                };
                return {
                    template: (h3z ? '{sign}' : '') + n3z.prefix.replace(/d/g, '\\d') + Array((Math.floor(Math.max(n3z.max, Math.abs(n3z.min))) + '').length + 1).join('d') + (n3z.scale ? '.' + Array(n3z.scale + 1).join('d') : '') + n3z.suffix.replace(/d/g, '\\d'),
                    leftKey: h3z ? {
                        text: '-/+',
                        variable: 'sign:-:',
                        track: false
                    } : undefined,
                    parseValue: function(w0z) {
                        var q0z, H0z, K0z = w0z || n3z.defaultValue,
                            c0z = [];
                        if (K0z) {
                            K0z = (K0z + '').replace(n3z.decimalSeparator, '.').replace(n3z.thousandsSeparator, '');
                            H0z = K0z.match(/\d+\.?\d*/g);
                            if (H0z) {
                                H0z = (+H0z[0]).toFixed(n3z.scale);
                                for (q0z = 0; q0z < H0z.length; q0z++) {
                                    if (H0z[q0z] != '.') {
                                        if (+H0z[q0z]) {
                                            c0z.push(+H0z[q0z]);
                                        } else if (c0z.length) {
                                            c0z.push(0);
                                        }
                                    }
                                }
                            }
                        }
                        if (w0z < 0) {
                            c0z.push('sign:' + '-');
                        }
                        return c0z;
                    },
                    formatValue: function(F0z, i0z) {
                        var a0z = S3z(F0z),
                            P0z = g3z(F0z, i0z && i0z.sign == '-');
                        return (P0z < 0 ? '-' : '') + (n3z.returnAffix ? n3z.prefix + a0z + n3z.suffix : a0z);
                    },
                    validate: function(x0z) {
                        var C0z = x0z.values,
                            A0z = S3z(C0z),
                            d0z = g3z(C0z, x0z.variables && x0z.variables.sign == '-'),
                            E0z = [];
                        if (!C0z.length && !n3z.allowLeadingZero) {
                            E0z.push(0);
                        }
                        if (j3z.isVisible()) {
                            e3z('.mbsc-np-dsp', j3z._markup).html((x0z.variables.sign || '') + n3z.prefix + A0z + n3z.suffix);
                        }
                        return {
                            disabled: E0z,
                            invalid: d0z > n3z.max || d0z < n3z.min || (n3z.invalid ? j3z._indexOf(n3z.invalid, d0z) != -1 : false)
                        };
                    }
                };
            };
        }());
        (function() {
            function Z0z(L0z) {
                var p0z = 0,
                    Y0z = 1,
                    X0z = 0;
                while (L0z.length) {
                    if (p0z > 3) {
                        Y0z = 60 * 60;
                    } else if (p0z > 1) {
                        Y0z = 60;
                    }
                    X0z = X0z + L0z.pop() * Y0z * (p0z % 2 ? 10 : 1);
                    p0z++;
                }
                return X0z;
            }
            var U0z = R,
                t0z = U0z.$,
                Q0z = U0z.presets.numpad,
                M0z = ['h', 'm', 's'],
                m0z = {
                    min: 0,
                    max: 362439,
                    defaultValue: 0,
                    hourTextShort: 'h',
                    minuteTextShort: 'm',
                    secTextShort: 's'
                };
            Q0z.timespan = function(u0z) {
                function k0z(s0z) {
                    var O0z, V0z = '',
                        I0z = 60 * 60;
                    t0z(M0z).each(function(r0z, e0z) {
                        O0z = Math.floor(s0z / I0z);
                        s0z -= O0z * I0z;
                        I0z /= 60;
                        if (O0z > 0 || e0z == 's' && !V0z) {
                            V0z = V0z + (V0z ? ' ' : '') + O0z + J0z[e0z];
                        }
                    });
                    return V0z;
                }
                var B0z = t0z.extend({}, u0z.settings),
                    v0z = t0z.extend(u0z.settings, m0z, B0z),
                    J0z = {
                        h: v0z.hourTextShort.replace(/d/g, '\\d'),
                        m: v0z.minuteTextShort.replace(/d/g, '\\d'),
                        s: v0z.secTextShort.replace(/d/g, '\\d')
                    },
                    o0z = 'd<span class="mbsc-np-sup mbsc-np-time">' + J0z.s + '</span>';
                if (v0z.max > 9) {
                    o0z = 'd' + o0z;
                }
                if (v0z.max > 99) {
                    o0z = '<span class="mbsc-np-ts-m">' + (v0z.max > 639 ? 'd' : '') + 'd</span><span class="mbsc-np-sup mbsc-np-time">' + J0z.m + '</span>' + o0z;
                }
                if (v0z.max > 6039) {
                    o0z = '<span class="mbsc-np-ts-h">' + (v0z.max > 38439 ? 'd' : '') + 'd</span><span class="mbsc-np-sup mbsc-np-time">' + J0z.h + '</span>' + o0z;
                }
                u0z.setVal = function(G0z, n0z, j0z, g0z) {
                    if (U0z.util.isNumeric(G0z)) {
                        G0z = k0z(G0z);
                    }
                    return u0z._setVal(G0z, n0z, j0z, g0z);
                };
                u0z.getVal = function(h0z) {
                    return u0z._hasValue || h0z ? Z0z(u0z.getArrayVal(h0z)) : null;
                };
                return {
                    template: o0z,
                    parseValue: function(R5A) {
                        var D0z, W0z = R5A || k0z(v0z.defaultValue),
                            S0z = [];
                        if (W0z) {
                            t0z(M0z).each(function(N5A, z5A) {
                                D0z = new RegExp('(\\d+)' + J0z[z5A], 'gi').exec(W0z);
                                if (D0z) {
                                    D0z = +D0z[1];
                                    if (D0z > 9) {
                                        S0z.push(Math.floor(D0z / 10));
                                        S0z.push(D0z % 10);
                                    } else {
                                        if (S0z.length) {
                                            S0z.push(0);
                                        }
                                        if (D0z || S0z.length) {
                                            S0z.push(D0z);
                                        }
                                    }
                                } else if (S0z.length) {
                                    S0z.push(0);
                                    S0z.push(0);
                                }
                            });
                        }
                        return S0z;
                    },
                    formatValue: function(T5A) {
                        return k0z(Z0z(T5A));
                    },
                    validate: function(l5A) {
                        var y5A = l5A.values,
                            f5A = Z0z(y5A.slice(0)),
                            b5A = [];
                        if (!y5A.length) {
                            b5A.push(0);
                        }
                        return {
                            disabled: b5A,
                            invalid: f5A > v0z.max || f5A < v0z.min || (v0z.invalid ? u0z._indexOf(v0z.invalid, +f5A) != -1 : false)
                        };
                    }
                };
            };
        }());
        (function() {
            var q5A = R,
                H5A = q5A.$,
                c5A = q5A.presets.numpad,
                K5A = {
                    timeFormat: 'hh:ii A',
                    amText: 'am',
                    pmText: 'pm'
                };
            c5A.time = function(Z5A) {
                function m5A(J5A) {
                    var o5A, V5A, B5A, e5A, r5A, j5A, O5A, I5A, G5A, n5A, k5A = [],
                        s5A = 2 * d5A.length;
                    U5A = s5A;
                    if (!J5A.length) {
                        if (a5A) {
                            k5A.push(0);
                            k5A.push(w5A.leftKey.value);
                        }
                        k5A.push(w5A.rightKey.value);
                    }
                    if (!a5A && (s5A - J5A.length < 2 || J5A[0] != 1 && (J5A[0] > 2 || J5A[1] > 3) && s5A - J5A.length <= 2)) {
                        k5A.push('30');
                        k5A.push('00');
                    }
                    if ((a5A ? J5A[0] > 1 || J5A[1] > 2 : J5A[0] != 1 && (J5A[0] > 2 || J5A[1] > 3)) && J5A[0]) {
                        J5A.unshift(0);
                        U5A = s5A - 1;
                    }
                    if (J5A.length == s5A) {
                        for (o5A = 0; o5A <= 9; ++o5A) {
                            k5A.push(o5A);
                        }
                    } else if (J5A.length == 1 && a5A && J5A[0] == 1 || J5A.length && J5A.length % 2 === 0 || !a5A && J5A[0] == 2 && J5A[1] > 3 && J5A.length % 2 == 1) {
                        for (o5A = 6; o5A <= 9; ++o5A) {
                            k5A.push(o5A);
                        }
                    }
                    G5A = J5A[1] !== undefined ? '' + J5A[0] + J5A[1] : '';
                    n5A = +P5A == +(J5A[3] !== undefined ? '' + J5A[2] + J5A[3] : '');
                    if (w5A.invalid) {
                        for (o5A = 0; o5A < w5A.invalid.length; ++o5A) {
                            j5A = w5A.invalid[o5A].getHours();
                            O5A = w5A.invalid[o5A].getMinutes();
                            I5A = w5A.invalid[o5A].getSeconds();
                            if (j5A == +G5A) {
                                if (d5A.length == 2 && (O5A < 10 ? 0 : +('' + O5A)[0]) == +J5A[2]) {
                                    k5A.push(O5A < 10 ? O5A : +('' + O5A)[1]);
                                    break;
                                } else if ((I5A < 10 ? 0 : +('' + I5A)[0]) == +J5A[4]) {
                                    k5A.push(I5A < 10 ? I5A : +('' + I5A)[1]);
                                    break;
                                }
                            }
                        }
                    }
                    if (w5A.min || w5A.max) {
                        V5A = +F5A == +G5A;
                        B5A = +i5A == +G5A;
                        r5A = B5A && n5A;
                        e5A = V5A && n5A;
                        if (J5A.length === 0) {
                            for (o5A = a5A ? 2 : F5A > 19 ? F5A[0] : 3; o5A <= (F5A[0] == 1 ? 9 : F5A[0] - 1); ++o5A) {
                                k5A.push(o5A);
                            }
                            if (F5A >= 10) {
                                k5A.push(0);
                                if (F5A[0] == 2) {
                                    for (o5A = 3; o5A <= 9; ++o5A) {
                                        k5A.push(o5A);
                                    }
                                }
                            }
                            if (i5A && i5A < 10 || F5A && F5A >= 10) {
                                for (o5A = i5A && i5A < 10 ? +i5A[0] + 1 : 0; o5A < (F5A && F5A >= 10 ? F5A[0] : 10); ++o5A) {
                                    k5A.push(o5A);
                                }
                            }
                        }
                        if (J5A.length == 1) {
                            if (J5A[0] === 0) {
                                for (o5A = 0; o5A < F5A[0]; ++o5A) {
                                    k5A.push(o5A);
                                }
                            }
                            if (F5A && (J5A[0] !== 0 && (a5A ? J5A[0] == 1 : J5A[0] == 2))) {
                                for (o5A = a5A ? 3 : 4; o5A <= 9; ++o5A) {
                                    k5A.push(o5A);
                                }
                            }
                            if (J5A[0] == F5A[0]) {
                                for (o5A = 0; o5A < F5A[1]; ++o5A) {
                                    k5A.push(o5A);
                                }
                            }
                            if (J5A[0] == i5A[0] && !a5A) {
                                for (o5A = +i5A[1] + 1; o5A <= 9; ++o5A) {
                                    k5A.push(o5A);
                                }
                            }
                        }
                        if (J5A.length == 2 && (V5A || B5A)) {
                            for (o5A = B5A ? +P5A[0] + 1 : 0; o5A < (V5A ? +E5A[0] : 10); ++o5A) {
                                k5A.push(o5A);
                            }
                        }
                        if (J5A.length == 3 && (B5A && J5A[2] == P5A[0] || V5A && J5A[2] == E5A[0])) {
                            for (o5A = B5A && J5A[2] == P5A[0] ? +P5A[1] + 1 : 0; o5A < (V5A && J5A[2] == E5A[0] ? +E5A[1] : 10); ++o5A) {
                                k5A.push(o5A);
                            }
                        }
                        if (J5A.length == 4 && (e5A || r5A)) {
                            for (o5A = r5A ? +x5A[0] + 1 : 0; o5A < (e5A ? +C5A[0] : 10); ++o5A) {
                                k5A.push(o5A);
                            }
                        }
                        if (J5A.length == 5 && (e5A && J5A[4] == C5A[0] || r5A && J5A[4] == x5A[0])) {
                            for (o5A = r5A && J5A[4] == x5A[0] ? +x5A[1] + 1 : 0; o5A < (e5A && J5A[4] == C5A[0] ? +C5A[1] : 10); ++o5A) {
                                k5A.push(o5A);
                            }
                        }
                    }
                    return k5A;
                }

                function Q5A(Y5A, L5A) {
                    var p5A, X5A = '';
                    for (p5A = 0; p5A < Y5A.length; ++p5A) {
                        X5A += Y5A[p5A] + (p5A % 2 == (Y5A.length % 2 == 1 ? 0 : 1) && p5A != Y5A.length - 1 ? ':' : '');
                    }
                    H5A.each(L5A, function(u5A, v5A) {
                        X5A += ' ' + v5A;
                    });
                    return X5A;
                }
                var M5A = H5A.extend({}, Z5A.settings),
                    w5A = H5A.extend(Z5A.settings, K5A, M5A),
                    d5A = w5A.timeFormat.split(':'),
                    a5A = w5A.timeFormat.match(/a/i),
                    t5A = a5A ? a5A[0] == 'a' ? w5A.amText : w5A.amText.toUpperCase() : '',
                    A5A = a5A ? a5A[0] == 'a' ? w5A.pmText : w5A.pmText.toUpperCase() : '',
                    U5A = 0,
                    F5A = w5A.min ? '' + w5A.min.getHours() : '',
                    i5A = w5A.max ? '' + w5A.max.getHours() : '',
                    E5A = w5A.min ? '' + (w5A.min.getMinutes() < 10 ? '0' + w5A.min.getMinutes() : w5A.min.getMinutes()) : '',
                    P5A = w5A.max ? '' + (w5A.max.getMinutes() < 10 ? '0' + w5A.max.getMinutes() : w5A.max.getMinutes()) : '',
                    C5A = w5A.min ? '' + (w5A.min.getSeconds() < 10 ? '0' + w5A.min.getSeconds() : w5A.min.getSeconds()) : '',
                    x5A = w5A.max ? '' + (w5A.max.getSeconds() < 10 ? '0' + w5A.max.getSeconds() : w5A.max.getSeconds()) : '';
                w5A.min ? w5A.min.setFullYear(2014, 7, 20) : '';
                w5A.max ? w5A.max.setFullYear(2014, 7, 20) : '';
                return {
                    placeholder: '-',
                    allowLeadingZero: true,
                    template: (d5A.length == 3 ? 'dd:dd:dd' : d5A.length == 2 ? 'dd:dd' : 'dd') + (a5A ? '<span class="mbsc-np-sup">{ampm:--}</span>' : ''),
                    leftKey: a5A ? {
                        text: t5A,
                        variable: 'ampm:' + t5A,
                        value: '00'
                    } : {
                        text: ':00',
                        value: '00'
                    },
                    rightKey: a5A ? {
                        text: A5A,
                        variable: 'ampm:' + A5A,
                        value: '00'
                    } : {
                        text: ':30',
                        value: '30'
                    },
                    parseValue: function(W5A) {
                        var h5A, S5A, g5A = W5A || w5A.defaultValue,
                            D5A = [];
                        if (g5A) {
                            g5A = g5A + '';
                            S5A = g5A.match(/\d/g);
                            if (S5A) {
                                for (h5A = 0; h5A < S5A.length; h5A++) {
                                    D5A.push(+S5A[h5A]);
                                }
                            }
                            if (a5A) {
                                D5A.push('ampm:' + (g5A.match(new RegExp(w5A.pmText, 'gi')) ? A5A : t5A));
                            }
                        }
                        return D5A;
                    },
                    formatValue: function(R1A, z1A) {
                        return Q5A(R1A, z1A);
                    },
                    validate: function(y1A) {
                        var N1A = y1A.values,
                            b1A = y1A.variables,
                            f1A = Q5A(N1A, b1A),
                            T1A = N1A.length >= 3 ? new Date(2014, 7, 20, '' + N1A[0] + (N1A.length % 2 === 0 ? N1A[1] : ''), '' + N1A[N1A.length % 2 === 0 ? 2 : 1] + N1A[N1A.length % 2 === 0 ? 3 : 2]) : '';
                        return {
                            disabled: m5A(N1A),
                            length: U5A,
                            invalid: (a5A ? !new RegExp('^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9])' + ' (?:' + w5A.amText + '|' + w5A.pmText + ')$', 'i').test(f1A) : !/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(f1A)) || (w5A.invalid ? Z5A._indexOf(w5A.invalid, T1A) != -1 : false) || !((w5A.min ? w5A.min <= T1A : true) && (w5A.max ? T1A <= w5A.max : true))
                        };
                    }
                };
            };
        }());
        (function() {
            var H1A = R,
                l1A = H1A.$,
                q1A = H1A.presets.numpad,
                c1A = {
                    dateOrder: 'mdy',
                    dateFormat: 'mm/dd/yy',
                    delimiter: '/'
                };
            q1A.date = function(Z1A) {
                function M1A(g1A) {
                    return new Date(+('' + g1A[w1A] + g1A[w1A + 1] + g1A[w1A + 2] + g1A[w1A + 3]), +('' + g1A[a1A] + g1A[a1A + 1]) - 1, +('' + g1A[i1A] + g1A[i1A + 1]));
                }

                function p1A(J1A) {
                    var o1A, B1A, G1A, I1A, s1A, k1A = [],
                        V1A = J1A[w1A + 3] !== undefined ? '' + J1A[w1A] + J1A[w1A + 1] + J1A[w1A + 2] + J1A[w1A + 3] : '',
                        O1A = J1A[a1A + 1] !== undefined ? '' + J1A[a1A] + J1A[a1A + 1] : '',
                        e1A = J1A[i1A + 1] !== undefined ? '' + J1A[i1A] + J1A[i1A + 1] : '',
                        j1A = '' + K1A.getMaxDayOfMonth(V1A || 2012, O1A - 1 || 0),
                        n1A = x1A === V1A && +d1A === +O1A,
                        r1A = P1A === V1A && +E1A === +O1A;
                    if (K1A.invalid) {
                        for (o1A = 0; o1A < K1A.invalid.length; ++o1A) {
                            G1A = K1A.getYear(K1A.invalid[o1A]);
                            I1A = K1A.getMonth(K1A.invalid[o1A]);
                            s1A = K1A.getDay(K1A.invalid[o1A]);
                            if (G1A == +V1A && I1A + 1 == +O1A) {
                                if ((s1A < 10 ? 0 : +('' + s1A)[0]) == +J1A[i1A]) {
                                    k1A.push(s1A < 10 ? s1A : +('' + s1A)[1]);
                                    break;
                                }
                            }
                            if (I1A + 1 == +O1A && s1A == +e1A) {
                                if (('' + G1A).substring(0, 3) == '' + J1A[w1A] + J1A[w1A + 1] + J1A[w1A + 2]) {
                                    k1A.push(('' + G1A)[3]);
                                    break;
                                }
                            }
                            if (G1A == +V1A && s1A == +e1A) {
                                if ((I1A < 10 ? 0 : +('' + (I1A + 1))[0]) == +J1A[a1A]) {
                                    k1A.push(I1A < 10 ? I1A : +('' + (I1A + 1))[1]);
                                    break;
                                }
                            }
                        }
                    }
                    if (e1A == '31' && (J1A.length == a1A || J1A.length == a1A + 1)) {
                        if (J1A[a1A] != 1) {
                            k1A.push(2, 4, 6, 9, 11);
                        } else {
                            k1A.push(1);
                        }
                    }
                    if (e1A == '30' && J1A[a1A] === 0 && J1A.length <= a1A + 1) {
                        k1A.push(2);
                    }
                    if (J1A.length == a1A) {
                        for (o1A = P1A === V1A && +E1A < 10 ? 1 : 2; o1A <= 9; ++o1A) {
                            k1A.push(o1A);
                        }
                        if (x1A === V1A && +d1A >= 10) {
                            k1A.push(0);
                        }
                    }
                    if (J1A.length == a1A + 1) {
                        if (J1A[a1A] == 1) {
                            for (o1A = P1A === V1A ? +E1A[1] + 1 : 3; o1A <= 9; ++o1A) {
                                k1A.push(o1A);
                            }
                            if (x1A == V1A) {
                                for (o1A = 0; o1A < +d1A[1]; ++o1A) {
                                    k1A.push(o1A);
                                }
                            }
                        }
                        if (J1A[a1A] === 0) {
                            k1A.push(0);
                            if (P1A === V1A || x1A === V1A) {
                                for (o1A = P1A === V1A ? +e1A > +t1A ? +E1A : +E1A + 1 : 0; o1A <= (x1A === V1A ? +e1A < +A1A ? +d1A - 1 : +d1A - 1 : 9); ++o1A) {
                                    k1A.push(o1A);
                                }
                            }
                        }
                    }
                    if (J1A.length == i1A) {
                        for (o1A = r1A ? (+t1A > 10 ? +t1A[0] : 0) + 1 : +j1A[0] + 1; o1A <= 9; ++o1A) {
                            k1A.push(o1A);
                        }
                        if (n1A) {
                            for (o1A = 0; o1A < (+A1A < 10 ? 0 : A1A[0]); ++o1A) {
                                k1A.push(o1A);
                            }
                        }
                    }
                    if (J1A.length == i1A + 1) {
                        if (J1A[i1A] >= 3 || O1A == '02') {
                            for (o1A = +j1A[1] + 1; o1A <= 9; ++o1A) {
                                k1A.push(o1A);
                            }
                        }
                        if (r1A && +t1A[0] == J1A[i1A]) {
                            for (o1A = +t1A[1] + 1; o1A <= 9; ++o1A) {
                                k1A.push(o1A);
                            }
                        }
                        if (n1A && A1A[0] == J1A[i1A]) {
                            for (o1A = 0; o1A < +A1A[1]; ++o1A) {
                                k1A.push(o1A);
                            }
                        }
                        if (J1A[i1A] === 0) {
                            k1A.push(0);
                            if (r1A || n1A) {
                                for (o1A = r1A ? +t1A + 1 : 1; o1A <= (n1A ? +A1A - 1 : 9); ++o1A) {
                                    k1A.push(o1A);
                                }
                            }
                        }
                    }
                    if (J1A[w1A + 2] !== undefined && O1A == '02' && e1A == '29') {
                        for (B1A = +('' + J1A[w1A] + J1A[w1A + 1] + J1A[w1A + 2] + 0); B1A <= +('' + J1A[w1A] + J1A[w1A + 1] + J1A[w1A + 2] + 9); ++B1A) {
                            k1A.push(!m1A(B1A) ? B1A % 10 : '');
                        }
                    }
                    if (J1A.length == w1A) {
                        if (K1A.min) {
                            for (o1A = 0; o1A < +x1A[0]; ++o1A) {
                                k1A.push(o1A);
                            }
                        }
                        if (K1A.max) {
                            for (o1A = +P1A[0] + 1; o1A <= 9; ++o1A) {
                                k1A.push(o1A);
                            }
                        }
                        k1A.push(0);
                    }
                    if (K1A.min || K1A.max) {
                        for (B1A = 1; B1A < 4; ++B1A) {
                            if (J1A.length == w1A + B1A) {
                                if (J1A[w1A + B1A - 1] == +x1A[B1A - 1] && (B1A == 3 ? J1A[w1A + B1A - 2] == +x1A[B1A - 2] : true)) {
                                    for (o1A = 0; o1A < +x1A[B1A] + (B1A == 3 && J1A[a1A + 1] && +d1A > +O1A ? 1 : 0); ++o1A) {
                                        k1A.push(o1A);
                                    }
                                }
                                if (J1A[w1A + B1A - 1] == +P1A[B1A - 1] && (B1A == 3 ? J1A[w1A + B1A - 2] == +P1A[B1A - 2] : true)) {
                                    for (o1A = +P1A[B1A] + (B1A == 3 && +E1A < +O1A ? 0 : 1); o1A <= 9; ++o1A) {
                                        k1A.push(o1A);
                                    }
                                }
                            }
                        }
                    }
                    return k1A;
                }

                function m1A(u1A) {
                    return u1A % 4 === 0 && u1A % 100 !== 0 || u1A % 400 === 0;
                }
                var w1A, a1A, i1A, U1A, C1A = [],
                    Q1A = l1A.extend({}, Z1A.settings),
                    K1A = l1A.extend(Z1A.settings, T.defaults, c1A, Q1A),
                    F1A = K1A.dateOrder,
                    d1A = K1A.min ? '' + (K1A.getMonth(K1A.min) + 1) : 0,
                    E1A = K1A.max ? '' + (K1A.getMonth(K1A.max) + 1) : 0,
                    A1A = K1A.min ? '' + K1A.getDay(K1A.min) : 0,
                    t1A = K1A.max ? '' + K1A.getDay(K1A.max) : 0,
                    x1A = K1A.min ? '' + K1A.getYear(K1A.min) : 0,
                    P1A = K1A.max ? '' + K1A.getYear(K1A.max) : 0;
                F1A = F1A.replace(/y+/gi, 'yyyy');
                F1A = F1A.replace(/m+/gi, 'mm');
                F1A = F1A.replace(/d+/gi, 'dd');
                w1A = F1A.toUpperCase().indexOf('Y');
                a1A = F1A.toUpperCase().indexOf('M');
                i1A = F1A.toUpperCase().indexOf('D');
                F1A = '';
                C1A.push({
                    val: w1A,
                    n: 'yyyy'
                }, {
                    val: a1A,
                    n: 'mm'
                }, {
                    val: i1A,
                    n: 'dd'
                });
                C1A.sort(function(Y1A, X1A) {
                    return Y1A.val - X1A.val;
                });
                l1A.each(C1A, function(v1A, L1A) {
                    F1A += L1A.n;
                });
                w1A = F1A.indexOf('y');
                a1A = F1A.indexOf('m');
                i1A = F1A.indexOf('d');
                F1A = '';
                for (U1A = 0; U1A < 8; ++U1A) {
                    F1A += 'd';
                    if (U1A + 1 == w1A || U1A + 1 == a1A || U1A + 1 == i1A) {
                        F1A += K1A.delimiter;
                    }
                }
                Z1A.getVal = function(h1A) {
                    return Z1A._hasValue || h1A ? M1A(Z1A.getArrayVal(h1A)) : null;
                };
                return {
                    placeholder: '-',
                    fill: 'ltr',
                    allowLeadingZero: true,
                    template: F1A,
                    parseValue: function(z2A) {
                        var W1A, S1A = [],
                            R2A = z2A || K1A.defaultValue,
                            D1A = T.parseDate(K1A.dateFormat, R2A, K1A);
                        if (R2A) {
                            for (W1A = 0; W1A < C1A.length; ++W1A) {
                                if (/m/i.test(C1A[W1A].n)) {
                                    S1A = S1A.concat(((K1A.getMonth(D1A) < 9 ? '0' : '') + (K1A.getMonth(D1A) + 1)).split(''));
                                } else if (/d/i.test(C1A[W1A].n)) {
                                    S1A = S1A.concat(((K1A.getDay(D1A) < 10 ? '0' : '') + K1A.getDay(D1A)).split(''));
                                } else {
                                    S1A = S1A.concat((K1A.getYear(D1A) + '').split(''));
                                }
                            }
                        }
                        return S1A;
                    },
                    formatValue: function(N2A) {
                        return T.formatDate(K1A.dateFormat, M1A(N2A), K1A);
                    },
                    validate: function(y2A) {
                        var f2A = y2A.values,
                            T2A = M1A(f2A);
                        return {
                            disabled: p1A(f2A),
                            invalid: !(T2A != 'Invalid Date' && (K1A.min ? K1A.min <= T2A : true) && (K1A.max ? T2A <= K1A.max : true)) || (K1A.invalid ? Z1A._indexOf(K1A.invalid, T2A) != -1 : false)
                        };
                    }
                };
            };
        }());
        (function(q2A) {
            var H2A = R,
                b2A = H2A.$,
                c2A = H2A.presets.scroller,
                l2A = H2A.util.datetime,
                K2A = H2A.util,
                w2A = K2A.testTouch,
                a2A = {
                    autoCorrect: true,
                    showSelector: true,
                    minRange: 1,
                    rangeTap: true,
                    fromText: 'Start',
                    toText: 'End'
                };
            H2A.presetShort('range');
            c2A.range = function(i2A) {
                function B2A(i6A, P6A) {
                    return {
                        h: i6A ? i6A.getHours() : P6A ? 23 : 0,
                        i: i6A ? i6A.getMinutes() : P6A ? 59 : 0,
                        s: i6A ? i6A.getSeconds() : P6A ? 59 : 0
                    };
                }

                function h2A() {
                    var l6A, K6A, H6A, w6A, q6A, c6A = 0,
                        a6A = E2A || !x2A ? ' mbsc-cal-day-hl mbsc-cal-sel-start' : ' mbsc-cal-sel-start',
                        F6A = E2A || x2A ? ' mbsc-cal-day-hl mbsc-cal-sel-end' : ' mbsc-cal-sel-end';
                    M2A = C2A ? l2A.formatDate(A2A, C2A, F2A) : '';
                    Z2A = P2A ? l2A.formatDate(A2A, P2A, F2A) : '';
                    if (d2A) {
                        b2A('.mbsc-range-btn-v-start', d2A).html(M2A || '&nbsp;');
                        b2A('.mbsc-range-btn-v-end', d2A).html(Z2A || '&nbsp;');
                        l6A = C2A ? new Date(C2A) : null;
                        H6A = P2A ? new Date(P2A) : null;
                        if (!l6A && H6A) {
                            l6A = new Date(H6A);
                        }
                        if (!H6A && l6A) {
                            H6A = new Date(l6A);
                        }
                        q6A = x2A ? H6A : l6A;
                        b2A('.mbsc-cal-table .mbsc-cal-day-sel .mbsc-cal-day-i', d2A).removeClass(J2A);
                        b2A('.mbsc-cal-table .mbsc-cal-day-hl', d2A).removeClass(v2A);
                        b2A('.mbsc-cal-table .mbsc-cal-day-sel', d2A).removeClass('mbsc-cal-day-sel mbsc-cal-sel-start mbsc-cal-sel-end').removeAttr('aria-selected');
                        if (l6A && H6A) {
                            K6A = l6A.setHours(0, 0, 0, 0);
                            w6A = H6A.setHours(0, 0, 0, 0);
                            while (H6A >= l6A && c6A < 84) {
                                b2A('.mbsc-cal-day[data-full="' + q6A.getFullYear() + '-' + q6A.getMonth() + '-' + q6A.getDate() + '"]', d2A).addClass('mbsc-cal-day-sel' + (q6A.getTime() === K6A ? a6A : '') + (q6A.getTime() === w6A ? F6A : '')).attr('aria-selected', 'true').find('.mbsc-cal-day-i ').addClass(J2A);
                                q6A.setDate(q6A.getDate() + (x2A ? -1 : 1));
                                c6A++;
                            }
                        }
                    }
                }

                function s2A() {
                    if (O2A && d2A) {
                        b2A('.mbsc-range-btn-c', d2A).removeClass('mbsc-range-btn-sel').removeAttr('aria-checked').find('.mbsc-range-btn', d2A).removeClass(J2A);
                        D2A(b2A('.mbsc-range-btn-c', d2A).eq(x2A));
                    }
                }

                function D2A(b6A) {
                    b6A.addClass('mbsc-range-btn-sel').attr('aria-checked', 'true').find('.mbsc-range-btn').addClass(J2A);
                }

                function S2A() {
                    return C2A && P2A ? Math.max(1, Math.round((new Date(P2A).setHours(0, 0, 0, 0) - new Date(C2A).setHours(0, 0, 0, 0)) / 86400000) + 1) : 0;
                }

                function e2A(f6A, y6A) {
                    var T6A = true;
                    if (f6A && C2A && P2A) {
                        if (P2A - C2A > F2A.maxRange - 1) {
                            if (x2A) {
                                C2A = new Date(P2A - F2A.maxRange + 1);
                            } else {
                                P2A = new Date(+C2A + F2A.maxRange - 1);
                            }
                        }
                        if (P2A - C2A < F2A.minRange - 1) {
                            if (x2A) {
                                C2A = new Date(P2A - F2A.minRange + 1);
                            } else {
                                P2A = new Date(+C2A + F2A.minRange - 1);
                            }
                        }
                    }
                    if (!C2A || !P2A) {
                        T6A = false;
                    }
                    if (y6A) {
                        h2A();
                    }
                    return T6A;
                }

                function W2A(N6A) {
                    i2A._startDate = t2A = C2A;
                    i2A._endDate = U2A = P2A;
                    if (F2A.startInput) {
                        b2A(F2A.startInput).val(M2A);
                        if (N6A) {
                            b2A(F2A.startInput).trigger('change');
                        }
                    }
                    if (F2A.endInput) {
                        b2A(F2A.endInput).val(Z2A);
                        if (N6A) {
                            b2A(F2A.endInput).trigger('change');
                        }
                    }
                }

                function n2A(R6A, z6A) {
                    if (R6A) {
                        R6A.setFullYear(z6A.getFullYear());
                        R6A.setMonth(z6A.getMonth());
                        R6A.setDate(z6A.getDate());
                    }
                }
                var Y2A, d2A, p2A, A2A, V2A, Q2A, X2A, M2A, Z2A, C2A, L2A, P2A, o2A, g2A, j2A, G2A, O2A, t2A = i2A._startDate,
                    U2A = i2A._endDate,
                    x2A = 0,
                    u2A = new Date(),
                    r2A = b2A.extend({}, i2A.settings),
                    F2A = b2A.extend(i2A.settings, a2A, r2A),
                    k2A = F2A.anchor,
                    E2A = F2A.rangeTap,
                    J2A = F2A.activeClass || '',
                    I2A = 'mbsc-fr-btn-d ' + (F2A.disabledClass || ''),
                    v2A = 'mbsc-cal-day-hl',
                    m2A = F2A.defaultValue === null ? [] : F2A.defaultValue || [new Date(u2A.setHours(0, 0, 0, 0)), new Date(u2A.getFullYear(), u2A.getMonth(), u2A.getDate() + 6, 23, 59, 59, 999)];
                if (E2A) {
                    F2A.tabs = true;
                }
                V2A = c2A.calbase.call(this, i2A);
                Y2A = b2A.extend({}, V2A);
                A2A = i2A.format;
                g2A = F2A.controls.join('') === 'time';
                O2A = F2A.controls.length == 1 && F2A.controls[0] == 'calendar' ? F2A.showSelector : true;
                if (F2A.startInput) {
                    j2A = b2A(F2A.startInput).prop('readonly');
                    i2A.attachShow(b2A(F2A.startInput).prop('readonly', true), function() {
                        x2A = 0;
                        F2A.anchor = k2A || b2A(F2A.startInput);
                    });
                }
                if (F2A.endInput) {
                    G2A = b2A(F2A.endInput).prop('readonly');
                    i2A.attachShow(b2A(F2A.endInput).prop('readonly', true), function() {
                        x2A = 1;
                        F2A.anchor = k2A || b2A(F2A.endInput);
                    });
                }
                i2A.setVal = function(d6A, A6A, t6A, E6A, U6A) {
                    var x6A = d6A || [],
                        C6A = d6A;
                    if (x6A[0] === q2A || x6A[0] === null || x6A[0].getTime) {
                        X2A = true;
                        C2A = x6A[0] || null;
                        M2A = C2A ? l2A.formatDate(A2A, C2A, F2A) : '';
                        if (!x2A) {
                            C6A = Y2A.parseValue(M2A, i2A);
                        }
                    }
                    if (x6A[1] === q2A || x6A[1] === null || x6A[1].getTime) {
                        X2A = true;
                        P2A = x6A[1] || null;
                        Z2A = P2A ? l2A.formatDate(A2A, P2A, F2A) : '';
                        if (x2A) {
                            C6A = Y2A.parseValue(Z2A, i2A);
                        }
                    }
                    if (!E6A) {
                        i2A._startDate = t2A = C2A;
                        i2A._endDate = U2A = P2A;
                    }
                    i2A._setVal(C6A, A6A, t6A, E6A, U6A);
                };
                i2A.getVal = function(Z6A) {
                    return Z6A ? [C2A, P2A] : i2A._hasValue ? [t2A, U2A] : null;
                };
                i2A.getDayProps = function(Q6A) {
                    var M6A = C2A ? new Date(C2A.getFullYear(), C2A.getMonth(), C2A.getDate()) : null,
                        m6A = P2A ? new Date(P2A.getFullYear(), P2A.getMonth(), P2A.getDate()) : null;
                    return {
                        selected: M6A && m6A && Q6A >= M6A && Q6A <= P2A,
                        cssClass: ((E2A || !x2A) && M6A && M6A.getTime() === Q6A.getTime() || (E2A || x2A) && m6A && m6A.getTime() === Q6A.getTime() ? v2A : '') + (M6A && M6A.getTime() === Q6A.getTime() ? ' mbsc-cal-sel-start' : '') + (m6A && m6A.getTime() === Q6A.getTime() ? ' mbsc-cal-sel-end' : '')
                    };
                };
                i2A.setActiveDate = function(Y6A) {
                    var p6A;
                    x2A = Y6A == 'start' ? 0 : 1;
                    p6A = Y6A == 'start' ? C2A : P2A;
                    if (i2A.isVisible()) {
                        s2A();
                        if (!E2A) {
                            b2A('.mbsc-cal-table .mbsc-cal-day-hl', d2A).removeClass(v2A);
                            if (p6A) {
                                b2A('.mbsc-cal-day[data-full="' + p6A.getFullYear() + '-' + p6A.getMonth() + '-' + p6A.getDate() + '"]', d2A).addClass(v2A);
                            }
                        }
                        if (p6A) {
                            Q2A = true;
                            i2A.setDate(p6A, false, 1000, true);
                        }
                    }
                };
                i2A.getValue = i2A.getVal;
                b2A.extend(V2A, {
                    highlight: false,
                    outerMonthChange: false,
                    formatValue: function() {
                        return M2A + (F2A.endInput ? '' : Z2A ? ' - ' + Z2A : '');
                    },
                    parseValue: function(L6A) {
                        var X6A = L6A ? L6A.split(' - ') : [];
                        F2A.defaultValue = m2A[1];
                        if (F2A.endInput) {
                            U2A = b2A(F2A.endInput).val() ? l2A.parseDate(A2A, b2A(F2A.endInput).val(), F2A) : m2A[1];
                        } else {
                            U2A = X6A[1] ? l2A.parseDate(A2A, X6A[1], F2A) : m2A[1];
                        }
                        F2A.defaultValue = m2A[0];
                        if (F2A.startInput) {
                            t2A = b2A(F2A.startInput).val() ? l2A.parseDate(A2A, b2A(F2A.startInput).val(), F2A) : m2A[0];
                        } else {
                            t2A = X6A[0] ? l2A.parseDate(A2A, X6A[0], F2A) : m2A[0];
                        }
                        F2A.defaultValue = m2A[x2A];
                        M2A = t2A ? l2A.formatDate(A2A, t2A, F2A) : '';
                        Z2A = U2A ? l2A.formatDate(A2A, U2A, F2A) : '';
                        i2A._startDate = t2A;
                        i2A._endDate = U2A;
                        return Y2A.parseValue(x2A ? Z2A : M2A, i2A);
                    },
                    onFill: function(v6A) {
                        W2A(v6A.change);
                    },
                    onBeforeClose: function(u6A) {
                        if (u6A.button === 'set' && !e2A(true, true)) {
                            i2A.setActiveDate(x2A ? 'start' : 'end');
                            return false;
                        }
                    },
                    onHide: function() {
                        Y2A.onHide.call(i2A);
                        x2A = 0;
                        d2A = null;
                        F2A.anchor = k2A;
                    },
                    onClear: function() {
                        if (E2A) {
                            x2A = 0;
                        }
                    },
                    onBeforeShow: function() {
                        F2A.headerText = false;
                        C2A = t2A;
                        P2A = U2A;
                        L2A = B2A(C2A, 0);
                        o2A = B2A(P2A, 1);
                        if (F2A.counter) {
                            F2A.headerText = function() {
                                var o6A = S2A();
                                return (o6A > 1 ? F2A.selectedPluralText || F2A.selectedText : F2A.selectedText).replace(/{count}/, o6A);
                            };
                        }
                        X2A = true;
                    },
                    onMarkupReady: function(J6A) {
                        var k6A;
                        if (C2A) {
                            Q2A = true;
                            i2A.setDate(C2A, false, 0, true);
                            C2A = i2A.getDate(true);
                        }
                        if (P2A) {
                            Q2A = true;
                            i2A.setDate(P2A, false, 0, true);
                            P2A = i2A.getDate(true);
                        }
                        if (x2A && P2A || !x2A && C2A) {
                            Q2A = true;
                            i2A.setDate(x2A ? P2A : C2A, false, 0, true);
                        }
                        h2A();
                        Y2A.onMarkupReady.call(this, J6A);
                        d2A = b2A(J6A.target);
                        d2A.addClass('mbsc-range');
                        if (O2A) {
                            k6A = '<div class="mbsc-range-btn-t" role="radiogroup">' + '<div class="mbsc-range-btn-c mbsc-range-btn-start"><div role="radio" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-range-btn">' + F2A.fromText + '<div class="mbsc-range-btn-v mbsc-range-btn-v-start">' + (M2A || '&nbsp;') + '</div></div></div>' + '<div class="mbsc-range-btn-c mbsc-range-btn-end"><div role="radio" class="mbsc-fr-btn-e mbsc-fr-btn-nhl mbsc-range-btn">' + F2A.toText + '<div class="mbsc-range-btn-v mbsc-range-btn-v-end">' + (Z2A || '&nbsp;') + '</div></div></div>' + '</div>';
                            b2A('.mbsc-cal-tabs', d2A).before(k6A);
                            s2A();
                        }
                        b2A('.mbsc-range-btn-c', d2A).on('touchstart click', function(B6A) {
                            if (w2A(B6A, this)) {
                                i2A.showMonthView();
                                i2A.setActiveDate(b2A(this).index() ? 'end' : 'start');
                            }
                        });
                    },
                    onDayChange: function(V6A) {
                        V6A.active = x2A ? 'end' : 'start';
                        p2A = true;
                    },
                    onSetDate: function(s6A) {
                        var O6A = s6A.date,
                            I6A = i2A.order;
                        if (!Q2A) {
                            if (I6A.h === q2A) {
                                O6A.setHours(x2A ? 23 : 0);
                            }
                            if (I6A.i === q2A) {
                                O6A.setMinutes(x2A ? 59 : 0);
                            }
                            if (I6A.s === q2A) {
                                O6A.setSeconds(x2A ? 59 : 0);
                            }
                            O6A.setMilliseconds(x2A ? 999 : 0);
                            if (!X2A || p2A) {
                                if (E2A && p2A) {
                                    if (x2A == 1 && O6A < C2A) {
                                        x2A = 0;
                                    }
                                    if (x2A) {
                                        O6A.setHours(o2A.h, o2A.i, o2A.s, 999);
                                    } else {
                                        O6A.setHours(L2A.h, L2A.i, L2A.s, 0);
                                    }
                                }
                                if (x2A) {
                                    P2A = new Date(O6A);
                                    o2A = B2A(P2A);
                                } else {
                                    C2A = new Date(O6A);
                                    L2A = B2A(C2A);
                                }
                                if (g2A) {
                                    n2A(C2A, O6A);
                                    n2A(P2A, O6A);
                                }
                                if (E2A && p2A && !x2A) {
                                    P2A = null;
                                }
                            }
                        }
                        i2A._isValid = e2A(X2A || p2A || F2A.autoCorrect, !Q2A);
                        s6A.active = x2A ? 'end' : 'start';
                        if (!Q2A && E2A) {
                            if (p2A) {
                                x2A = x2A ? 0 : 1;
                            }
                            s2A();
                        }
                        if (i2A.isVisible()) {
                            if (i2A._isValid) {
                                b2A('.mbsc-fr-btn-s .mbsc-fr-btn', i2A._markup).removeClass(I2A);
                            } else {
                                b2A('.mbsc-fr-btn-s .mbsc-fr-btn', i2A._markup).addClass(I2A);
                            }
                        }
                        p2A = false;
                        X2A = false;
                        Q2A = false;
                    },
                    onTabChange: function(e6A) {
                        if (e6A.tab != 'calendar') {
                            i2A.setDate(x2A ? P2A : C2A, false, 1000, true);
                        }
                        e2A(true, true);
                    },
                    onDestroy: function() {
                        b2A(F2A.startInput).prop('readonly', j2A);
                        b2A(F2A.endInput).prop('readonly', G2A);
                    }
                });
                return V2A;
            };
        }());
        (function(n6A) {
            var G6A = R,
                r6A = G6A.$,
                j6A = {
                    inputClass: '',
                    values: 5,
                    order: 'desc',
                    style: 'icon',
                    invalid: [],
                    icon: {
                        filled: 'star3',
                        empty: 'star3'
                    }
                };
            G6A.presetShort('rating');
            G6A.presets.scroller.rating = function(N4A) {
                var P4A = r6A.extend({}, N4A.settings),
                    g6A = r6A.extend(N4A.settings, j6A, P4A),
                    D6A = r6A(this),
                    q4A = this.id + '_dummy',
                    a4A = r6A('label[for="' + this.id + '"]').attr('for', q4A),
                    x4A = g6A.label !== n6A ? g6A.label : a4A.length ? a4A.text() : D6A.attr('name'),
                    b4A = g6A.defaultValue,
                    w4A = [
                        []
                    ],
                    F4A = {
                        data: [],
                        label: x4A,
                        circular: false
                    },
                    f4A = {},
                    S6A = [],
                    W6A, H4A = false,
                    h6A, z4A, y4A, c4A, K4A, i4A, R4A, l4A, C4A, T4A = g6A.style === 'grade' ? 'circle' : 'icon';
                if (D6A.is('select')) {
                    g6A.values = {};
                    r6A('option', D6A).each(function() {
                        g6A.values[r6A(this).val()] = r6A(this).text();
                    });
                    r6A('#' + q4A).remove();
                }
                if (r6A.isArray(g6A.values)) {
                    for (h6A = 0; h6A < g6A.values.length; h6A++) {
                        R4A = +g6A.values[h6A];
                        if (isNaN(R4A)) {
                            R4A = h6A + 1;
                            H4A = true;
                        }
                        S6A.push({
                            order: R4A,
                            key: g6A.values[h6A],
                            value: g6A.values[h6A]
                        });
                    }
                } else if (r6A.isPlainObject(g6A.values)) {
                    h6A = 1;
                    H4A = true;
                    for (l4A in g6A.values) {
                        R4A = +l4A;
                        if (isNaN(R4A)) {
                            R4A = h6A;
                        }
                        S6A.push({
                            order: R4A,
                            key: l4A,
                            value: g6A.values[l4A]
                        });
                        h6A++;
                    }
                } else {
                    for (h6A = 1; h6A <= g6A.values; h6A++) {
                        S6A.push({
                            order: h6A,
                            key: h6A,
                            value: h6A
                        });
                    }
                }
                if (g6A.showText === n6A && H4A) {
                    g6A.showText = true;
                }
                if (g6A.icon.empty === n6A) {
                    g6A.icon.empty = g6A.icon.filled;
                }
                S6A.sort(function(d4A, E4A) {
                    return g6A.order == 'desc' ? E4A.order - d4A.order : d4A.order - E4A.order;
                });
                C4A = g6A.order == 'desc' ? S6A[0].order : S6A[S6A.length - 1].order;
                for (h6A = 0; h6A < S6A.length; h6A++) {
                    i4A = S6A[h6A].order;
                    c4A = S6A[h6A].key;
                    K4A = S6A[h6A].value;
                    y4A = '';
                    for (z4A = 1; z4A < i4A + 1; z4A++) {
                        y4A += '<span class="mbsc-rating-' + T4A + (T4A === 'circle' ? '' : ' mbsc-ic mbsc-ic-' + g6A.icon.filled) + ' ">' + (T4A == 'circle' ? z4A : ' ') + '</span>';
                    }
                    for (z4A = i4A + 1; z4A <= C4A; z4A++) {
                        y4A += '<span class="mbsc-rating-' + T4A + (T4A === 'circle' ? ' mbsc-rating-circle-unf' : ' mbsc-ic mbsc-ic-' + (g6A.icon.empty ? g6A.icon.empty + ' mbsc-rating-icon-unf' : '') + (g6A.icon.empty === g6A.icon.filled ? ' mbsc-rating-icon-same' : '')) + '"></span>';
                    }
                    if (b4A === n6A) {
                        b4A = c4A;
                    }
                    y4A += g6A.showText ? '<span class="mbsc-rating-txt">' + K4A + '</span>' : '';
                    F4A.data.push({
                        value: c4A,
                        display: y4A,
                        label: K4A
                    });
                    f4A[c4A] = K4A;
                }
                if (D6A.is('select')) {
                    W6A = r6A('<input type="text" id="' + q4A + '" value="' + f4A[D6A.val()] + '" class="' + g6A.inputClass + '" placeholder="' + (g6A.placeholder || '') + '" readonly />').insertBefore(D6A);
                }
                w4A[0].push(F4A);
                if (W6A) {
                    N4A.attachShow(W6A);
                }
                if (D6A.is('select')) {
                    D6A.hide().closest('.ui-field-contain').trigger('create');
                }
                N4A.getVal = function(t4A) {
                    var A4A = N4A._hasValue ? N4A[t4A ? '_tempWheelArray' : '_wheelArray'][0] : null;
                    return G6A.util.isNumeric(A4A) ? +A4A : A4A;
                };
                return {
                    anchor: W6A,
                    wheels: w4A,
                    headerText: false,
                    compClass: 'mbsc-rating',
                    setOnTap: true,
                    formatValue: function(U4A) {
                        return f4A[U4A[0]];
                    },
                    parseValue: function(M4A) {
                        var Z4A;
                        for (Z4A in f4A) {
                            if (W6A && Z4A == M4A || !W6A && f4A[Z4A] == M4A) {
                                return [Z4A];
                            }
                        }
                        return [b4A];
                    },
                    validate: function() {
                        return {
                            disabled: [g6A.invalid]
                        };
                    },
                    onFill: function(Q4A) {
                        if (W6A) {
                            W6A.val(Q4A.valueText);
                            D6A.val(N4A._tempWheelArray[0]);
                        }
                    },
                    onDestroy: function() {
                        if (W6A) {
                            W6A.remove();
                        }
                        D6A.show();
                    }
                };
            };
        }());
        (function(L4A) {
            function X4A(V4A, O4A) {
                var B4A = new XMLHttpRequest();
                B4A.open('GET', V4A, true);
                B4A.onload = function() {
                    if (this.status >= 200 && this.status < 400) {
                        O4A(JSON.parse(this.response));
                    }
                };
                B4A.onerror = function() {};
                B4A.send();
            }

            function Y4A(o4A, J4A) {
                var v4A = document.createElement('script'),
                    u4A = 'mbscjsonp' + ++p4A;
                window[u4A] = function(k4A) {
                    v4A.parentNode.removeChild(v4A);
                    delete window[u4A];
                    if (!k4A) {
                        return;
                    }
                    J4A(k4A);
                };
                v4A.src = o4A + (o4A.indexOf('?') >= 0 ? '&' : '?') + 'callback=' + u4A;
                document.body.appendChild(v4A);
            }
            var m4A = R,
                p4A = 0;
            m4A.util.getJson = function(I4A, s4A, e4A) {
                if (e4A == 'jsonp') {
                    Y4A(I4A, s4A);
                } else {
                    X4A(I4A, s4A);
                }
            };
        }());
        var H = R.util.getJson;
        (function(G4A) {
            var j4A = R,
                r4A = j4A.$,
                n4A = j4A.util,
                g4A = n4A.isString,
                h4A = {
                    inputClass: '',
                    invalid: [],
                    rtl: false,
                    showInput: true,
                    groupLabel: 'Groups',
                    dataHtml: 'html',
                    dataText: 'text',
                    dataValue: 'value',
                    dataGroup: 'group',
                    dataDisabled: 'disabled',
                    filterPlaceholderText: 'Type to filter',
                    filterEmptyText: 'No results',
                    filterClearIcon: 'material-close'
                };
            j4A.presetShort('select');
            j4A.presets.scroller.select = function(D4A) {
                function s7A(O8A) {
                    var V8A = {};
                    Y7A(O8A);
                    S4A.wheels = I7A();
                    Z7A(N7A);
                    V8A[W4A] = X7A();
                    D4A._tempWheelArray[W4A] = N7A;
                    if (y7A) {
                        V8A[f7A] = V7A();
                        D4A._tempWheelArray[f7A] = l7A;
                    }
                    if (D4A._isVisible) {
                        D4A.changeWheel(V8A, 0, true);
                    }
                }

                function e7A(B8A) {
                    return S4A.data.dataField ? B8A[S4A.data.dataField] : S4A.data.processResponse ? S4A.data.processResponse(B8A) : B8A;
                }

                function v7A(k8A, J8A) {
                    J8A = J8A.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
                    return k8A.match(new RegExp(J8A, 'ig'));
                }

                function n7A() {
                    var o8A = {};
                    o8A[W4A] = X7A();
                    t7A = true;
                    D4A.changeWheel(o8A);
                }

                function G7A() {
                    var v8A = D4A.getVal(),
                        u8A = D4A._tempValue;
                    if (!(S4A.filter && S4A.display == 'inline')) {
                        b7A.val(u8A);
                    }
                    R7A.val(v8A);
                }

                function j7A(L8A) {
                    var p8A, Y8A, X8A = [];
                    if (K7A) {
                        for (p8A in D4A._tempSelected[W4A]) {
                            X8A.push(Q7A[p8A] || (z7A[p8A] ? z7A[p8A].text : ''));
                        }
                        return X8A.join(', ');
                    }
                    Y8A = L8A[W4A];
                    return z7A[Y8A] ? z7A[Y8A].text : '';
                }

                function g7A(Q8A, m8A) {
                    var M8A = Q8A ? D4A._tempWheelArray : D4A._hasValue ? D4A._wheelArray : null;
                    return M8A ? S4A.group && m8A ? M8A : M8A[W4A] : null;
                }

                function Z7A(Z8A) {
                    if (H7A) {
                        if (Z8A && g4A(Z8A)) {
                            Z8A = Z8A.split(',');
                        }
                        if (r4A.isArray(Z8A)) {
                            Z8A = Z8A[0];
                        }
                    }
                    N7A = Z8A === G4A || Z8A === null || Z8A === '' || !z7A[Z8A] ? J7A : Z8A;
                    if (y7A) {
                        l7A = z7A[N7A] ? z7A[N7A].group : null;
                    }
                }

                function I7A() {
                    var t8A, U8A, A8A = [
                        []
                    ];
                    if (y7A) {
                        t8A = V7A();
                        if (p7A) {
                            A8A[0][f7A] = t8A;
                        } else {
                            A8A[f7A] = [t8A];
                        }
                    }
                    U8A = X7A();
                    if (p7A) {
                        A8A[0][W4A] = U8A;
                    } else {
                        A8A[W4A] = [U8A];
                    }
                    return A8A;
                }

                function X7A() {
                    return B7A(F7A ? q7A[l7A].options : T7A, K7A, o7A);
                }

                function V7A() {
                    return B7A(U7A, false, S4A.groupLabel);
                }

                function B7A(x8A, d8A, E8A) {
                    var P8A, C8A = [];
                    for (P8A = 0; P8A < x8A.length; P8A++) {
                        C8A.push({
                            value: x8A[P8A].value,
                            display: x8A[P8A].html || x8A[P8A].text,
                            cssClass: x8A[P8A].cssClass
                        });
                    }
                    return {
                        circular: false,
                        multiple: d8A,
                        data: C8A,
                        label: E8A
                    };
                }

                function Y7A(R8A) {
                    var D7A, b8A, W7A, h7A, y8A, S7A, T8A = 0,
                        z8A = 0,
                        N8A = {};
                    z7A = {};
                    q7A = {};
                    T7A = [];
                    U7A = [];
                    w7A.length = 0;
                    if (E7A) {
                        r4A.each(A7A, function(H8A, l8A) {
                            y8A = l8A[S4A.dataText];
                            b8A = l8A[S4A.dataHtml];
                            S7A = l8A[S4A.dataValue];
                            W7A = l8A[S4A.dataGroup];
                            h7A = {
                                value: S7A,
                                html: b8A,
                                text: y8A,
                                index: H8A
                            };
                            z7A[S7A] = h7A;
                            if (!R8A || v7A(y8A, R8A)) {
                                T7A.push(h7A);
                                if (i7A) {
                                    if (N8A[W7A] === G4A) {
                                        D7A = {
                                            text: W7A,
                                            value: z8A,
                                            options: [],
                                            index: z8A
                                        };
                                        q7A[z8A] = D7A;
                                        N8A[W7A] = z8A;
                                        U7A.push(D7A);
                                        z8A++;
                                    } else {
                                        D7A = q7A[N8A[W7A]];
                                    }
                                    if (F7A) {
                                        h7A.index = D7A.options.length;
                                    }
                                    h7A.group = N8A[W7A];
                                    D7A.options.push(h7A);
                                }
                                if (l8A[S4A.dataDisabled]) {
                                    w7A.push(S7A);
                                }
                            }
                        });
                    } else {
                        if (i7A) {
                            var f8A = true;
                            r4A('optgroup', R7A).each(function(q8A) {
                                q7A[q8A] = {
                                    text: this.label,
                                    value: q8A,
                                    options: [],
                                    index: q8A
                                };
                                f8A = true;
                                r4A('option', this).each(function(c8A) {
                                    h7A = {
                                        value: this.value,
                                        text: this.text,
                                        index: F7A ? c8A : T8A++,
                                        group: q8A
                                    };
                                    z7A[this.value] = h7A;
                                    if (!R8A || v7A(this.text, R8A)) {
                                        if (f8A) {
                                            U7A.push(q7A[q8A]);
                                            f8A = false;
                                        }
                                        T7A.push(h7A);
                                        q7A[q8A].options.push(h7A);
                                        if (this.disabled) {
                                            w7A.push(this.value);
                                        }
                                    }
                                });
                            });
                        } else {
                            r4A('option', R7A).each(function(K8A) {
                                h7A = {
                                    value: this.value,
                                    text: this.text,
                                    index: K8A
                                };
                                z7A[this.value] = h7A;
                                if (!R8A || v7A(this.text, R8A)) {
                                    T7A.push(h7A);
                                    if (this.disabled) {
                                        w7A.push(this.value);
                                    }
                                }
                            });
                        }
                    }
                    if (T7A.length) {
                        J7A = T7A[0].value;
                    }
                    if (u7A) {
                        T7A = [];
                        T8A = 0;
                        r4A.each(q7A, function(a8A, w8A) {
                            if (w8A.options.length) {
                                S7A = '__group' + a8A;
                                h7A = {
                                    text: w8A.text,
                                    value: S7A,
                                    group: a8A,
                                    index: T8A++,
                                    cssClass: 'mbsc-sel-gr'
                                };
                                z7A[S7A] = h7A;
                                T7A.push(h7A);
                                w7A.push(h7A.value);
                                r4A.each(w8A.options, function(i8A, F8A) {
                                    F8A.index = T8A++;
                                    T7A.push(F8A);
                                });
                            }
                        });
                    }
                    if (x7A) {
                        if (T7A.length) {
                            x7A.removeClass('mbsc-sel-empty-v');
                        } else {
                            x7A.addClass('mbsc-sel-empty-v');
                        }
                    }
                }
                var b7A, A7A, J7A, k7A, c7A, l7A, U7A, q7A, f7A, C7A, N7A, T7A, W4A, t7A, Q7A = {},
                    L7A = 1000,
                    R7A = r4A(this),
                    r7A = r4A.extend({}, D4A.settings),
                    S4A = r4A.extend(D4A.settings, h4A, r7A),
                    x7A = r4A('<div class="mbsc-sel-empty">' + S4A.filterEmptyText + '</div>'),
                    O7A = S4A.readonly,
                    z7A = {},
                    m7A = S4A.layout || (/top|bottom|inline/.test(S4A.display) || S4A.filter ? 'liquid' : ''),
                    p7A = m7A == 'liquid',
                    H7A = n4A.isNumeric(S4A.select) ? S4A.select : S4A.select == 'multiple' || R7A.prop('multiple'),
                    K7A = H7A || (S4A.filter ? 1 : false),
                    d7A = this.id + '_dummy',
                    M7A = r4A('label[for="' + this.id + '"]').attr('for', d7A),
                    o7A = S4A.label !== G4A ? S4A.label : M7A.length ? M7A.text() : R7A.attr('name'),
                    E7A = !!S4A.data,
                    i7A = E7A ? !!S4A.group : r4A('optgroup', R7A).length,
                    a7A = S4A.group,
                    y7A = i7A && a7A && a7A.groupWheel !== false,
                    F7A = i7A && a7A && y7A && a7A.clustered === true,
                    u7A = i7A && (!a7A || a7A.header !== false && !F7A),
                    P7A = R7A.val() || (H7A ? [] : ['']),
                    w7A = [];
                D4A.setVal = function(I8A, e8A, r8A, s8A, G8A) {
                    if (K7A) {
                        if (I8A && !H7A) {
                            I8A = [I8A];
                        }
                        if (I8A && g4A(I8A)) {
                            I8A = I8A.split(',');
                        }
                        D4A._tempSelected[W4A] = n4A.arrayToObject(I8A);
                        if (!s8A) {
                            D4A._selected[W4A] = n4A.arrayToObject(I8A);
                        }
                        I8A = I8A ? I8A[0] : null;
                    }
                    D4A._setVal(I8A, e8A, r8A, s8A, G8A);
                };
                D4A.getVal = function(j8A, g8A) {
                    if (K7A) {
                        var n8A = n4A.objectToArray(j8A ? D4A._tempSelected[W4A] : D4A._selected[W4A]);
                        return H7A ? n8A : n8A.length ? n8A[0] : null;
                    }
                    return g7A(j8A, g8A);
                };
                D4A.refresh = function(h8A, S8A) {
                    if (h8A) {
                        A7A = h8A;
                    }
                    if (!h8A && C7A && S8A === G4A) {
                        H(S4A.data.url, function(D8A) {
                            A7A = e7A(D8A);
                            s7A();
                        }, S4A.data.dataType);
                    } else {
                        s7A(S8A);
                    }
                };
                if (!S4A.invalid.length) {
                    S4A.invalid = w7A;
                }
                if (y7A) {
                    f7A = 0;
                    W4A = 1;
                } else {
                    f7A = -1;
                    W4A = 0;
                }
                if (K7A) {
                    if (H7A) {
                        R7A.prop('multiple', true);
                    }
                    if (P7A && g4A(P7A)) {
                        P7A = P7A.split(',');
                    }
                    D4A._selected[W4A] = n4A.arrayToObject(P7A);
                }
                if (D4A._dummyInput) {
                    D4A._dummyInput.remove();
                }
                if (R7A.next().is('input.mbsc-control')) {
                    b7A = R7A.off('.mbsc-form').next().removeAttr('tabindex');
                } else {
                    if (S4A.filter && S4A.display == 'inline') {
                        D4A._dummyInput = r4A('<div class="mbsc-sel-input-wrap"><input type="text" id="' + d7A + '" class="mbsc-control mbsc-control-ev ' + S4A.inputClass + '" readonly /></div>');
                    } else {
                        b7A = r4A('<input type="text" id="' + d7A + '" class="mbsc-control mbsc-control-ev ' + S4A.inputClass + '" readonly />');
                        D4A._dummyInput = b7A;
                    }
                    if (S4A.showInput) {
                        D4A._dummyInput.insertBefore(R7A);
                        if (!b7A) {
                            b7A = D4A._dummyInput.find('#' + d7A);
                        }
                    }
                }
                D4A.attachShow(b7A.attr('placeholder', S4A.placeholder || ''));
                R7A.addClass('mbsc-sel-hdn').attr('tabindex', -1);
                if (S4A.filter) {
                    k7A = S4A.filter.minLength || 0;
                }
                C7A = S4A.data && S4A.data.url;
                if (C7A) {
                    D4A.refresh();
                } else {
                    if (E7A) {
                        A7A = S4A.data;
                    }
                    Y7A();
                    Z7A(R7A.val());
                }
                return {
                    layout: m7A,
                    headerText: false,
                    anchor: b7A,
                    compClass: 'mbsc-sel' + (y7A ? ' mbsc-sel-gr-whl' : '') + (K7A ? ' mbsc-sel-multi' : ''),
                    setOnTap: y7A ? [false, true] : true,
                    formatValue: j7A,
                    parseValue: function(W8A) {
                        Z7A(W8A === G4A ? R7A.val() : W8A);
                        return y7A ? [l7A, N7A] : [N7A];
                    },
                    validate: function(N9A) {
                        var z9A = N9A.index,
                            R9A = [];
                        R9A[W4A] = S4A.invalid;
                        if (F7A && !t7A && z9A === G4A) {
                            n7A();
                        }
                        t7A = false;
                        return {
                            disabled: R9A
                        };
                    },
                    onRead: G7A,
                    onFill: G7A,
                    onMarkupReady: function(q9A, y9A) {
                        if (S4A.filter) {
                            var b9A, H9A, T9A, l9A = r4A('.mbsc-fr-w', q9A.target),
                                f9A = r4A('<span class="mbsc-sel-filter-clear mbsc-ic mbsc-ic-' + S4A.filterClearIcon + '"></span>');
                            if (S4A.display == 'inline') {
                                b9A = b7A;
                                b7A.parent().find('.mbsc-sel-filter-clear').remove();
                            } else {
                                l9A.prepend('<div class="mbsc-input mbsc-sel-filter-cont mbsc-control-w"><span class="mbsc-input-wrap"><input type="text" class="mbsc-sel-filter-input mbsc-control mbsc-control-ev"/></span></div>');
                                b9A = l9A.find('.mbsc-sel-filter-input');
                            }
                            c7A = '';
                            T9A = b9A[0];
                            b9A.prop('readonly', false).attr('placeholder', S4A.filterPlaceholderText).parent().append(f9A);
                            l9A.find('.mbsc-fr-c').prepend(x7A);
                            y9A.tap(f9A, function() {
                                T9A.value = '';
                                y9A.refresh();
                                f9A.removeClass('mbsc-sel-filter-show-clear');
                            });
                            b9A.on('keydown', function(c9A) {
                                if (c9A.keyCode == 13 || c9A.keyCode == 27) {
                                    c9A.stopPropagation();
                                    T9A.blur();
                                }
                            }).on('keyup', function() {
                                clearTimeout(H9A);
                                if (T9A.value.length) {
                                    f9A.addClass('mbsc-sel-filter-show-clear');
                                } else {
                                    f9A.removeClass('mbsc-sel-filter-show-clear');
                                }
                                H9A = setTimeout(function() {
                                    if (c7A === T9A.value || y9A.trigger('onFilter', {
                                            filterText: T9A.value
                                        }) === false) {
                                        return;
                                    }
                                    c7A = T9A.value;
                                    if (c7A.length >= k7A || !c7A.length) {
                                        if (C7A && S4A.data.remoteFilter) {
                                            H(S4A.data.url + encodeURIComponent(c7A), function(K9A) {
                                                y9A.refresh(e7A(K9A));
                                            }, S4A.data.dataType);
                                        } else {
                                            y9A.refresh(G4A, c7A);
                                        }
                                    }
                                }, 500);
                            });
                        }
                    },
                    onBeforeShow: function() {
                        if (H7A && S4A.counter) {
                            S4A.headerText = function() {
                                var w9A = 0;
                                r4A.each(D4A._tempSelected[W4A], function() {
                                    w9A++;
                                });
                                return (w9A > 1 ? S4A.selectedPluralText || S4A.selectedText : S4A.selectedText).replace(/{count}/, w9A);
                            };
                        }
                        Z7A(R7A.val());
                        if (S4A.filter) {
                            Y7A(G4A);
                        }
                        D4A.settings.wheels = I7A();
                        t7A = true;
                    },
                    onWheelGestureStart: function(a9A) {
                        if (a9A.index == f7A) {
                            S4A.readonly = [false, true];
                        }
                    },
                    onWheelAnimationEnd: function(i9A) {
                        var F9A = D4A.getArrayVal(true);
                        if (i9A.index == f7A) {
                            S4A.readonly = O7A;
                            if (F9A[f7A] != l7A) {
                                l7A = F9A[f7A];
                                N7A = q7A[l7A].options[0].value;
                                F9A[W4A] = N7A;
                                if (F7A) {
                                    n7A();
                                } else {
                                    D4A.setArrayVal(F9A, false, false, true, L7A);
                                }
                            }
                        } else if (i9A.index == W4A && F9A[W4A] != N7A) {
                            N7A = F9A[W4A];
                            if (y7A && N7A && z7A[N7A].group != l7A) {
                                l7A = z7A[N7A].group;
                                F9A[f7A] = l7A;
                                D4A.setArrayVal(F9A, false, false, true, L7A);
                            }
                        }
                    },
                    onItemTap: function(P9A) {
                        if (P9A.index == W4A) {
                            Q7A[P9A.value] = z7A[P9A.value].text;
                            if (K7A && !H7A && P9A.selected) {
                                return false;
                            }
                        }
                    },
                    onClose: function() {
                        if (C7A && S4A.data.remoteFilter && c7A) {
                            D4A.refresh();
                        }
                    },
                    onDestroy: function() {
                        if (D4A._dummyInput) {
                            D4A._dummyInput.remove();
                        }
                        R7A.removeClass('mbsc-sel-hdn').removeAttr('tabindex');
                    }
                };
            };
        }());
        (function(d9A) {
            var C9A = R,
                x9A = C9A.$,
                E9A = {
                    autostart: false,
                    step: 1,
                    useShortLabels: false,
                    labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds', ''],
                    labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs', ''],
                    startText: 'Start',
                    stopText: 'Stop',
                    resetText: 'Reset',
                    lapText: 'Lap',
                    hideText: 'Hide'
                };
            C9A.presetShort('timer');
            C9A.presets.scroller.timer = function(A9A) {
                function S9A() {
                    if (L9A) {
                        x9A('.mbsc-fr-w', M9A).addClass('mbsc-timer-running mbsc-timer-locked');
                        x9A('.mbsc-timer-btn-toggle-c > div', M9A).text(t9A.stopText);
                        if (A9A.buttons.start.icon) {
                            x9A('.mbsc-timer-btn-toggle-c > div', M9A).removeClass('mbsc-ic-' + A9A.buttons.start.icon);
                        }
                        if (A9A.buttons.stop.icon) {
                            x9A('.mbsc-timer-btn-toggle-c > div', M9A).addClass('mbsc-ic-' + A9A.buttons.stop.icon);
                        }
                        if (t9A.mode == 'stopwatch') {
                            x9A('.mbsc-timer-btn-resetlap-c > div', M9A).text(t9A.lapText);
                            if (A9A.buttons.reset.icon) {
                                x9A('.mbsc-timer-btn-resetlap-c > div', M9A).removeClass('mbsc-ic-' + A9A.buttons.reset.icon);
                            }
                            if (A9A.buttons.lap.icon) {
                                x9A('.mbsc-timer-btn-resetlap-c > div', M9A).addClass('mbsc-ic-' + A9A.buttons.lap.icon);
                            }
                        }
                    } else {
                        x9A('.mbsc-fr-w', M9A).removeClass('mbsc-timer-running');
                        x9A('.mbsc-timer-btn-toggle-c > div', M9A).text(t9A.startText);
                        if (A9A.buttons.start.icon) {
                            x9A('.mbsc-timer-btn-toggle-c > div', M9A).addClass('mbsc-ic-' + A9A.buttons.start.icon);
                        }
                        if (A9A.buttons.stop.icon) {
                            x9A('.mbsc-timer-btn-toggle-c > div', M9A).removeClass('mbsc-ic-' + A9A.buttons.stop.icon);
                        }
                        if (t9A.mode == 'stopwatch') {
                            x9A('.mbsc-timer-btn-resetlap-c > div', M9A).text(t9A.resetText);
                            if (A9A.buttons.reset.icon) {
                                x9A('.mbsc-timer-btn-resetlap-c > div', M9A).addClass('mbsc-ic-' + A9A.buttons.reset.icon);
                            }
                            if (A9A.buttons.lap.icon) {
                                x9A('.mbsc-timer-btn-resetlap-c > div', M9A).removeClass('mbsc-ic-' + A9A.buttons.lap.icon);
                            }
                        }
                    }
                }

                function D9A(B3A) {
                    if (j9A) {
                        Z9A = Y9A - new Date();
                        if (Z9A < 0) {
                            Z9A *= -1;
                            p9A = true;
                        } else {
                            p9A = false;
                        }
                        U9A = 0;
                        B9A = true;
                    } else if (Y9A !== d9A) {
                        B9A = false;
                        Z9A = Y9A * 1000;
                        p9A = t9A.mode != 'countdown';
                        if (B3A) {
                            U9A = 0;
                        }
                    } else {
                        Z9A = 0;
                        p9A = t9A.mode != 'countdown';
                        B9A = p9A;
                        if (B3A) {
                            U9A = 0;
                        }
                    }
                }

                function J9A(o3A) {
                    var L3A = [],
                        v3A, u3A = y3A(o3A);
                    x9A(m9A).each(function(k3A, J3A) {
                        if (u9A[J3A]) {
                            v3A = Math.max(Math.round(s9A / Q9A[J3A].limit), 1);
                            L3A.push(Math.round(u3A[J3A] / v3A) * v3A);
                        }
                    });
                    return L3A;
                }

                function N3A(p3A, Y3A, X3A) {
                    return (Y3A || '') + (p3A < 10 ? '0' : '') + p3A + '<span class="mbsc-timer-lbl">' + X3A + '</span>';
                }

                function f3A(E3A) {
                    var A3A = 1,
                        C3A = Q9A[E3A],
                        d3A = C3A.wheel,
                        t3A = C3A.prefix,
                        Z3A = 0,
                        M3A = C3A.until,
                        U3A = Q9A[m9A[x9A.inArray(E3A, m9A) - 1]];
                    if (C3A.index <= Q9A[X9A].index && (!U3A || U3A.limit > s9A)) {
                        if (!u9A[E3A]) {
                            W9A[0].push(d3A);
                        }
                        u9A[E3A] = 1;
                        d3A.data = [];
                        d3A.label = C3A.label || '';
                        d3A.cssClass = 'mbsc-timer-whl-' + E3A;
                        if (s9A >= C3A.limit) {
                            A3A = Math.max(Math.round(s9A / C3A.limit), 1);
                            O9A = A3A * C3A.limit;
                        }
                        if (E3A == X9A) {
                            d3A.min = 0;
                            d3A.data = function(Q3A) {
                                return {
                                    value: Q3A,
                                    display: N3A(Q3A, t3A, C3A.label)
                                };
                            };
                            d3A.getIndex = function(m3A) {
                                return m3A;
                            };
                        } else {
                            for (e9A = Z3A; e9A <= M3A; e9A += A3A) {
                                d3A.data.push({
                                    value: e9A,
                                    display: N3A(e9A, t3A, C3A.label)
                                });
                            }
                        }
                    }
                }

                function y3A(F3A) {
                    var l3A = {};
                    if (j9A && Q9A[X9A].index > Q9A.days.index) {
                        var K3A, c3A, i3A, w3A, a3A = new Date(),
                            H3A = p9A ? a3A : Y9A,
                            q3A = p9A ? Y9A : a3A;
                        q3A = R3A(q3A);
                        H3A = R3A(H3A);
                        l3A.years = H3A.getFullYear() - q3A.getFullYear();
                        l3A.months = H3A.getMonth() - q3A.getMonth();
                        l3A.days = H3A.getDate() - q3A.getDate();
                        l3A.hours = H3A.getHours() - q3A.getHours();
                        l3A.minutes = H3A.getMinutes() - q3A.getMinutes();
                        l3A.seconds = H3A.getSeconds() - q3A.getSeconds();
                        l3A.fract = (H3A.getMilliseconds() - q3A.getMilliseconds()) / 10;
                        for (K3A = m9A.length; K3A > 0; K3A--) {
                            c3A = m9A[K3A - 1];
                            i3A = Q9A[c3A];
                            w3A = m9A[x9A.inArray(c3A, m9A) - 1];
                            if (Q9A[w3A] && l3A[c3A] < 0) {
                                l3A[w3A]--;
                                l3A[c3A] += w3A == 'months' ? 32 - new Date(H3A.getFullYear(), H3A.getMonth(), 32).getDate() : i3A.until + 1;
                            }
                        }
                        if (X9A == 'months') {
                            l3A.months += l3A.years * 12;
                            delete l3A.years;
                        }
                    } else {
                        x9A(m9A).each(function(x3A, P3A) {
                            if (Q9A[P3A].index <= Q9A[X9A].index) {
                                l3A[P3A] = Math.floor(F3A / Q9A[P3A].limit);
                                F3A -= l3A[P3A] * Q9A[P3A].limit;
                            }
                        });
                    }
                    return l3A;
                }

                function R3A(b3A) {
                    return new Date(b3A.getUTCFullYear(), b3A.getUTCMonth(), b3A.getUTCDate(), b3A.getUTCHours(), b3A.getUTCMinutes(), b3A.getUTCSeconds(), b3A.getUTCMilliseconds());
                }
                var e9A, g9A, O9A, k9A, V9A, I9A, Z9A, U9A, p9A, M9A, T3A, z3A = x9A.extend({}, A9A.settings),
                    t9A = x9A.extend(A9A.settings, E9A, z3A),
                    v9A = t9A.useShortLabels ? t9A.labelsShort : t9A.labels,
                    h9A = ['toggle', 'resetlap'],
                    m9A = ['years', 'months', 'days', 'hours', 'minutes', 'seconds', 'fract'],
                    Q9A = {
                        'years': {
                            index: 6,
                            until: 10,
                            limit: 1000 * 60 * 60 * 24 * 365,
                            label: v9A[0],
                            wheel: {}
                        },
                        'months': {
                            index: 5,
                            until: 11,
                            limit: 1000 * 60 * 60 * 24 * 30,
                            label: v9A[1],
                            wheel: {}
                        },
                        'days': {
                            index: 4,
                            until: 31,
                            limit: 1000 * 60 * 60 * 24,
                            label: v9A[2],
                            wheel: {}
                        },
                        'hours': {
                            index: 3,
                            until: 23,
                            limit: 1000 * 60 * 60,
                            label: v9A[3],
                            wheel: {}
                        },
                        'minutes': {
                            index: 2,
                            until: 59,
                            limit: 1000 * 60,
                            label: v9A[4],
                            wheel: {}
                        },
                        'seconds': {
                            index: 1,
                            until: 59,
                            limit: 1000,
                            label: v9A[5],
                            wheel: {}
                        },
                        'fract': {
                            index: 0,
                            until: 99,
                            limit: 10,
                            label: v9A[6],
                            prefix: '.',
                            wheel: {}
                        }
                    },
                    u9A = {},
                    G9A = [],
                    n9A = 0,
                    L9A = false,
                    o9A = true,
                    B9A = false,
                    s9A = Math.max(10, t9A.step * 1000),
                    X9A = t9A.maxWheel,
                    r9A = t9A.mode == 'stopwatch' || j9A,
                    Y9A = t9A.targetTime,
                    j9A = Y9A && Y9A.getTime !== d9A,
                    W9A = [
                        []
                    ];
                A9A.start = function() {
                    if (o9A) {
                        A9A.reset();
                    }
                    if (!L9A) {
                        D9A();
                        if (!B9A && U9A >= Z9A) {
                            return;
                        }
                        L9A = true;
                        o9A = false;
                        V9A = new Date();
                        k9A = U9A;
                        t9A.readonly = true;
                        A9A.setVal(J9A(p9A ? U9A : Z9A - U9A), true, true, false, 100);
                        g9A = setInterval(function() {
                            U9A = new Date() - V9A + k9A;
                            A9A.setVal(J9A(p9A ? U9A : Z9A - U9A), true, true, false, Math.min(100, O9A - 10));
                            if (!B9A && U9A + O9A >= Z9A) {
                                clearInterval(g9A);
                                setTimeout(function() {
                                    A9A.stop();
                                    U9A = Z9A;
                                    A9A.setVal(J9A(p9A ? U9A : 0), true, true, false, 100);
                                    A9A.trigger('onFinish', {
                                        time: Z9A
                                    });
                                    o9A = true;
                                }, Z9A - U9A);
                            }
                        }, O9A);
                        S9A();
                        A9A.trigger('onStart');
                    }
                };
                A9A.stop = function() {
                    if (L9A) {
                        L9A = false;
                        clearInterval(g9A);
                        U9A = new Date() - V9A + k9A;
                        S9A();
                        A9A.trigger('onStop', {
                            ellapsed: U9A
                        });
                    }
                };
                A9A.toggle = function() {
                    if (L9A) {
                        A9A.stop();
                    } else {
                        A9A.start();
                    }
                };
                A9A.reset = function() {
                    A9A.stop();
                    U9A = 0;
                    G9A = [];
                    n9A = 0;
                    A9A.setVal(J9A(p9A ? 0 : Z9A), true, true, false, 100);
                    A9A.settings.readonly = r9A;
                    o9A = true;
                    if (!r9A) {
                        x9A('.mbsc-fr-w', M9A).removeClass('mbsc-timer-locked');
                    }
                    A9A.trigger('onReset');
                };
                A9A.lap = function() {
                    if (L9A) {
                        I9A = new Date() - V9A + k9A;
                        T3A = I9A - n9A;
                        n9A = I9A;
                        G9A.push(I9A);
                        A9A.trigger('onLap', {
                            ellapsed: I9A,
                            lap: T3A,
                            laps: G9A
                        });
                    }
                };
                A9A.resetlap = function() {
                    if (L9A && t9A.mode == 'stopwatch') {
                        A9A.lap();
                    } else {
                        A9A.reset();
                    }
                };
                A9A.getTime = function() {
                    return Z9A;
                };
                A9A.setTime = function(V3A) {
                    Y9A = V3A / 1000;
                    Z9A = V3A;
                };
                A9A.getEllapsedTime = function() {
                    return L9A ? new Date() - V9A + k9A : 0;
                };
                A9A.setEllapsedTime = function(O3A, I3A) {
                    if (!o9A) {
                        k9A = U9A = O3A;
                        V9A = new Date();
                        A9A.setVal(J9A(p9A ? U9A : Z9A - U9A), true, I3A, false, 100);
                    }
                };
                D9A(true);
                if (!X9A && !Z9A) {
                    X9A = 'minutes';
                }
                if (t9A.display !== 'inline') {
                    h9A.push('hide');
                }
                if (!X9A) {
                    x9A(m9A).each(function(e3A, s3A) {
                        if (!X9A && Z9A >= Q9A[s3A].limit) {
                            X9A = s3A;
                            return false;
                        }
                    });
                }
                x9A(m9A).each(function(G3A, r3A) {
                    f3A(r3A);
                });
                O9A = Math.max(87, O9A);
                if (t9A.autostart) {
                    setTimeout(function() {
                        A9A.start();
                    }, 0);
                }
                A9A.handlers.toggle = A9A.toggle;
                A9A.handlers.start = A9A.start;
                A9A.handlers.stop = A9A.stop;
                A9A.handlers.resetlap = A9A.resetlap;
                A9A.handlers.reset = A9A.reset;
                A9A.handlers.lap = A9A.lap;
                A9A.buttons.toggle = {
                    parentClass: 'mbsc-timer-btn-toggle-c',
                    text: t9A.startText,
                    icon: t9A.startIcon,
                    handler: 'toggle'
                };
                A9A.buttons.start = {
                    text: t9A.startText,
                    icon: t9A.startIcon,
                    handler: 'start'
                };
                A9A.buttons.stop = {
                    text: t9A.stopText,
                    icon: t9A.stopIcon,
                    handler: 'stop'
                };
                A9A.buttons.reset = {
                    text: t9A.resetText,
                    icon: t9A.resetIcon,
                    handler: 'reset'
                };
                A9A.buttons.lap = {
                    text: t9A.lapText,
                    icon: t9A.lapIcon,
                    handler: 'lap'
                };
                A9A.buttons.resetlap = {
                    parentClass: 'mbsc-timer-btn-resetlap-c',
                    text: t9A.resetText,
                    icon: t9A.resetIcon,
                    handler: 'resetlap'
                };
                A9A.buttons.hide = {
                    parentClass: 'mbsc-timer-btn-hide-c',
                    text: t9A.hideText,
                    icon: t9A.closeIcon,
                    handler: 'cancel'
                };
                return {
                    wheels: W9A,
                    headerText: false,
                    readonly: r9A,
                    buttons: h9A,
                    mode: 'countdown',
                    compClass: 'mbsc-timer',
                    parseValue: function() {
                        return J9A(p9A ? 0 : Z9A);
                    },
                    formatValue: function(g3A) {
                        var j3A = '',
                            n3A = 0;
                        x9A(m9A).each(function(S3A, h3A) {
                            if (h3A == 'fract') {
                                return;
                            }
                            if (u9A[h3A]) {
                                j3A += g3A[n3A] + (h3A == 'seconds' && u9A.fract ? '.' + g3A[n3A + 1] : '') + ' ' + v9A[S3A] + ' ';
                                n3A++;
                            }
                        });
                        return j3A;
                    },
                    validate: function(W3A) {
                        var R0A = W3A.values,
                            z0A = W3A.index,
                            D3A = 0;
                        if (o9A && z0A !== d9A) {
                            Y9A = 0;
                            x9A(m9A).each(function(T0A, N0A) {
                                if (u9A[N0A]) {
                                    Y9A += Q9A[N0A].limit * R0A[D3A];
                                    D3A++;
                                }
                            });
                            Y9A /= 1000;
                            D9A(true);
                        }
                    },
                    onBeforeShow: function() {
                        t9A.showLabel = true;
                    },
                    onMarkupReady: function(f0A) {
                        M9A = x9A(f0A.target);
                        S9A();
                        if (r9A) {
                            x9A('.mbsc-fr-w', M9A).addClass('mbsc-timer-locked');
                        }
                    },
                    onPosition: function(y0A) {
                        x9A('.mbsc-fr-w', y0A.target).css('min-width', 0).css('min-width', x9A('.mbsc-fr-btn-cont', y0A.target)[0].offsetWidth);
                    },
                    onDestroy: function() {
                        clearInterval(g9A);
                    }
                };
            };
        }());
        (function(q0A) {
            var l0A = R,
                b0A = l0A.$,
                H0A = {
                    wheelOrder: 'hhiiss',
                    useShortLabels: false,
                    min: 0,
                    max: Infinity,
                    labels: ['Years', 'Months', 'Days', 'Hours', 'Minutes', 'Seconds'],
                    labelsShort: ['Yrs', 'Mths', 'Days', 'Hrs', 'Mins', 'Secs']
                };
            l0A.presetShort('timespan');
            l0A.presets.scroller.timespan = function(F0A) {
                function L0A(N5d, z5d) {
                    return Math.floor(N5d / z5d) * z5d;
                }

                function X0A(S0A) {
                    var D0A = 0,
                        h0A = 0;
                    b0A.each(w0A, function(W0A, R5d) {
                        if (!isNaN(+S0A[D0A])) {
                            h0A += K0A[R5d.v].limit * S0A[W0A];
                        }
                    });
                    return h0A;
                }

                function p0A(n0A, j0A, g0A) {
                    return (n0A < 10 && j0A ? '0' : '') + n0A + '<span class="mbsc-ts-lbl">' + g0A + '</span>';
                }

                function v0A(O0A) {
                    var I0A = false,
                        s0A = Z0A[i0A[O0A] - 1] || 1,
                        V0A = K0A[O0A],
                        e0A = V0A.label,
                        B0A = V0A.wheel;
                    B0A.data = [];
                    B0A.label = V0A.label;
                    if (t0A.match(new RegExp(V0A.re + V0A.re, 'i'))) {
                        I0A = true;
                    }
                    if (O0A == x0A) {
                        B0A.min = d0A[O0A];
                        B0A.max = C0A[O0A];
                        B0A.data = function(r0A) {
                            return {
                                value: r0A,
                                display: p0A(r0A * s0A, I0A, e0A)
                            };
                        };
                        B0A.getIndex = function(G0A) {
                            return Math.round(G0A / s0A);
                        };
                    } else {
                        for (P0A = 0; P0A <= V0A.until; P0A += s0A) {
                            B0A.data.push({
                                value: P0A,
                                display: p0A(P0A, I0A, e0A)
                            });
                        }
                    }
                }

                function E0A(o0A) {
                    var u0A = {};
                    b0A(A0A).each(function(k0A, J0A) {
                        u0A[J0A] = i0A[J0A] ? Math.floor(o0A / K0A[J0A].limit) : 0;
                        o0A -= u0A[J0A] * K0A[J0A].limit;
                    });
                    return u0A;
                }
                var P0A, U0A, Y0A, d0A, C0A, Q0A = b0A.extend({}, F0A.settings),
                    c0A = b0A.extend(F0A.settings, H0A, Q0A),
                    t0A = c0A.wheelOrder,
                    a0A = c0A.useShortLabels ? c0A.labelsShort : c0A.labels,
                    A0A = ['years', 'months', 'days', 'hours', 'minutes', 'seconds'],
                    K0A = {
                        'years': {
                            ord: 0,
                            index: 6,
                            until: 10,
                            limit: 1000 * 60 * 60 * 24 * 365,
                            label: a0A[0],
                            re: 'y',
                            wheel: {}
                        },
                        'months': {
                            ord: 1,
                            index: 5,
                            until: 11,
                            limit: 1000 * 60 * 60 * 24 * 30,
                            label: a0A[1],
                            re: 'm',
                            wheel: {}
                        },
                        'days': {
                            ord: 2,
                            index: 4,
                            until: 31,
                            limit: 1000 * 60 * 60 * 24,
                            label: a0A[2],
                            re: 'd',
                            wheel: {}
                        },
                        'hours': {
                            ord: 3,
                            index: 3,
                            until: 23,
                            limit: 1000 * 60 * 60,
                            label: a0A[3],
                            re: 'h',
                            wheel: {}
                        },
                        'minutes': {
                            ord: 4,
                            index: 2,
                            until: 59,
                            limit: 1000 * 60,
                            label: a0A[4],
                            re: 'i',
                            wheel: {}
                        },
                        'seconds': {
                            ord: 5,
                            index: 1,
                            until: 59,
                            limit: 1000,
                            label: a0A[5],
                            re: 's',
                            wheel: {}
                        }
                    },
                    w0A = [],
                    Z0A = c0A.steps || [],
                    i0A = {},
                    x0A = 'seconds',
                    m0A = c0A.defaultValue || Math.max(c0A.min, Math.min(0, c0A.max)),
                    M0A = [
                        []
                    ];
                b0A(A0A).each(function(f5d, T5d) {
                    U0A = t0A.search(new RegExp(K0A[T5d].re, 'i'));
                    if (U0A > -1) {
                        w0A.push({
                            o: U0A,
                            v: T5d
                        });
                        if (K0A[T5d].index > K0A[x0A].index) {
                            x0A = T5d;
                        }
                    }
                });
                w0A.sort(function(y5d, b5d) {
                    return y5d.o > b5d.o ? 1 : -1;
                });
                b0A.each(w0A, function(H5d, l5d) {
                    i0A[l5d.v] = H5d + 1;
                    M0A[0].push(K0A[l5d.v].wheel);
                });
                d0A = E0A(c0A.min);
                C0A = E0A(c0A.max);
                b0A.each(w0A, function(c5d, q5d) {
                    v0A(q5d.v);
                });
                F0A.getVal = function(K5d, w5d) {
                    return w5d ? F0A._getVal(K5d) : F0A._hasValue || K5d ? X0A(F0A.getArrayVal(K5d)) : null;
                };
                return {
                    showLabel: true,
                    wheels: M0A,
                    compClass: 'mbsc-ts',
                    parseValue: function(F5d) {
                        var a5d = [],
                            i5d;
                        if (l0A.util.isNumeric(F5d) || !F5d) {
                            Y0A = E0A(F5d || m0A);
                            b0A.each(w0A, function(x5d, P5d) {
                                a5d.push(Y0A[P5d.v]);
                            });
                        } else {
                            b0A.each(w0A, function(d5d, C5d) {
                                i5d = new RegExp('(\\d+)\\s?(' + c0A.labels[K0A[C5d.v].ord] + '|' + c0A.labelsShort[K0A[C5d.v].ord] + ')', 'gi').exec(F5d);
                                a5d.push(i5d ? i5d[1] : 0);
                            });
                        }
                        b0A(a5d).each(function(E5d, A5d) {
                            a5d[E5d] = L0A(A5d, Z0A[E5d] || 1);
                        });
                        return a5d;
                    },
                    formatValue: function(U5d) {
                        var t5d = '';
                        b0A.each(w0A, function(Z5d, M5d) {
                            t5d += +U5d[Z5d] ? U5d[Z5d] + ' ' + K0A[M5d.v].label + ' ' : '';
                        });
                        return t5d ? t5d.replace(/\s+$/g, '') : 0;
                    },
                    validate: function(J5d) {
                        var u5d, Q5d, m5d, p5d, v5d = J5d.values,
                            o5d = J5d.direction,
                            L5d = [],
                            X5d = true,
                            Y5d = true;
                        b0A(A0A).each(function(B5d, k5d) {
                            if (i0A[k5d] !== q0A) {
                                m5d = i0A[k5d] - 1;
                                L5d[m5d] = [];
                                p5d = {};
                                if (k5d != x0A) {
                                    if (X5d) {
                                        for (Q5d = C0A[k5d] + 1; Q5d <= K0A[k5d].until; Q5d++) {
                                            p5d[Q5d] = true;
                                        }
                                    }
                                    if (Y5d) {
                                        for (Q5d = 0; Q5d < d0A[k5d]; Q5d++) {
                                            p5d[Q5d] = true;
                                        }
                                    }
                                }
                                v5d[m5d] = F0A.getValidValue(m5d, v5d[m5d], o5d, p5d);
                                u5d = E0A(X0A(v5d));
                                X5d = X5d && u5d[k5d] == C0A[k5d];
                                Y5d = Y5d && u5d[k5d] == d0A[k5d];
                                b0A.each(p5d, function(V5d) {
                                    L5d[m5d].push(V5d);
                                });
                            }
                        });
                        return {
                            disabled: L5d
                        };
                    }
                };
            };
        }());
        (function() {
            var O5d = R,
                I5d = O5d.presets.scroller;
            I5d.treelist = I5d.list;
            O5d.presetShort('list');
            O5d.presetShort('treelist');
        }());
        (function(G5d) {
            var e5d = R,
                s5d = e5d.$,
                r5d = e5d.classes;
            r5d.Widget = function(D5d, W5d, z1d) {
                function R1d(N1d) {
                    s5d('.mbsc-fr-c', N1d);
                    if (!s5d('.mbsc-fr-c', N1d).hasClass('mbsc-wdg-c') && R.CsDrb) {
                        s5d('.mbsc-fr-c', N1d).addClass('mbsc-wdg-c').append(g5d.show());
                        if (!s5d('.mbsc-w-p', N1d).length) {
                            s5d('.mbsc-fr-c', N1d).addClass('mbsc-w-p');
                        }
                    }
                }
                var n5d, h5d, S5d, g5d = s5d(D5d),
                    j5d = this;
                r5d.Frame.call(this, D5d, W5d, true);
                j5d._generateContent = function() {
                    return '';
                };
                j5d._markupReady = function(T1d) {
                    if (n5d.display != 'inline') {
                        R1d(T1d);
                    }
                };
                j5d._markupInserted = function(f1d) {
                    if (n5d.display == 'inline') {
                        R1d(f1d);
                    }
                    f1d.trigger('mbsc-enhance', [{
                        theme: n5d.theme,
                        lang: n5d.lang
                    }]);
                };
                j5d._markupRemove = function() {
                    g5d.hide();
                    if (h5d) {
                        h5d.prepend(g5d);
                    } else {
                        S5d.after(g5d);
                    }
                };
                j5d.__processSettings = function() {
                    n5d = j5d.settings;
                    j5d.buttons.ok = {
                        text: n5d.okText,
                        icon: n5d.okIcon,
                        handler: 'set'
                    };
                    n5d.buttons = n5d.buttons || (n5d.display == 'inline' ? [] : ['ok']);
                    if (!h5d && !S5d) {
                        S5d = g5d.prev();
                        if (!S5d.length) {
                            h5d = g5d.parent();
                        }
                    }
                    g5d.hide();
                };
                j5d.__init = function() {
                    n5d.cssClass = (n5d.cssClass || '') + ' mbsc-wdg';
                };
                if (!z1d) {
                    j5d.init(W5d);
                }
            };
            r5d.Widget.prototype = {
                _hasDef: true,
                _hasTheme: true,
                _hasContent: true,
                _class: 'widget',
                _defaults: s5d.extend({}, r5d.Frame.prototype._defaults, {
                    okText: 'OK',
                    headerText: false
                })
            };
            e5d.themes.widget = e5d.themes.frame;
            e5d.presetShort('widget', 'Widget', false);
        }());
        R.i18n.ca = {
            setText: 'Acceptar',
            cancelText: 'Cancel·lar',
            clearText: 'Esborrar',
            selectedText: '{count} seleccionat',
            selectedPluralText: '{count} seleccionats',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Diumenge', 'Dilluns', 'Dimarts', 'Dimecres', 'Dijous', 'Divendres', 'Dissabte'],
            dayNamesShort: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
            dayNamesMin: ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'],
            dayText: 'Dia',
            hourText: 'Hores',
            minuteText: 'Minuts',
            monthNames: ['Gener', 'Febrer', 'Mar&ccedil;', 'Abril', 'Maig', 'Juny', 'Juliol', 'Agost', 'Setembre', 'Octubre', 'Novembre', 'Desembre'],
            monthNamesShort: ['Gen', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Des'],
            monthText: 'Mes',
            secText: 'Segons',
            timeFormat: 'HH:ii',
            yearText: 'Any',
            nowText: 'Ara',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Avui',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Temps',
            calendarText: 'Calendari',
            closeText: 'Tancar',
            fromText: 'Iniciar',
            toText: 'Final',
            wholeText: 'Sencer',
            fractionText: 'Fracció',
            unitText: 'Unitat',
            labels: ['Anys', 'Mesos', 'Dies', 'Hores', 'Minuts', 'Segons', ''],
            labelsShort: ['Anys', 'Mesos', 'Dies', 'Hrs', 'Mins', 'Secs', ''],
            startText: 'Iniciar',
            stopText: 'Aturar',
            resetText: 'Reiniciar',
            lapText: 'Volta',
            hideText: 'Amagar',
            backText: 'Enrere',
            undoText: 'Desfés',
            offText: 'No',
            onText: 'Si'
        };
        R.i18n.cs = {
            setText: 'Zadej',
            cancelText: 'Storno',
            clearText: 'Vymazat',
            selectedText: 'Označený: {count}',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'],
            dayNamesShort: ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'],
            dayNamesMin: ['N', 'P', 'Ú', 'S', 'Č', 'P', 'S'],
            dayText: 'Den',
            hourText: 'Hodiny',
            minuteText: 'Minuty',
            monthNames: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'],
            monthNamesShort: ['Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čer', 'Čvc', 'Spr', 'Zář', 'Říj', 'Lis', 'Pro'],
            monthText: 'Měsíc',
            secText: 'Sekundy',
            timeFormat: 'HH:ii',
            yearText: 'Rok',
            nowText: 'Teď',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Dnes',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Čas',
            calendarText: 'Kalendář',
            closeText: 'Zavřít',
            fromText: 'Začátek',
            toText: 'Konec',
            wholeText: 'Celý',
            fractionText: 'Část',
            unitText: 'Jednotka',
            labels: ['Roky', 'Měsíce', 'Dny', 'Hodiny', 'Minuty', 'Sekundy', ''],
            labelsShort: ['Rok', 'Měs', 'Dny', 'Hod', 'Min', 'Sec', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Resetovat',
            lapText: 'Etapa',
            hideText: 'Schovat',
            backText: 'Zpět',
            undoText: 'Zpět',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.da = {
            setText: 'Sæt',
            cancelText: 'Annuller',
            clearText: 'Ryd',
            selectedText: '{count} valgt',
            selectedPluralText: '{count} valgt',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
            dayNamesShort: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
            dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
            dayText: 'Dag',
            hourText: 'Timer',
            minuteText: 'Minutter',
            monthNames: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Måned',
            secText: 'Sekunder',
            amText: 'am',
            pmText: 'pm',
            timeFormat: 'HH.ii',
            yearText: 'År',
            nowText: 'Nu',
            todayText: 'I dag',
            firstDay: 1,
            dateText: 'Dato',
            timeText: 'Tid',
            calendarText: 'Kalender',
            closeText: 'Luk',
            fromText: 'Start',
            toText: 'Slut',
            wholeText: 'Hele',
            fractionText: 'Dele',
            unitText: 'Enhed',
            labels: ['År', 'Måneder', 'Dage', 'Timer', 'Minutter', 'Sekunder', ''],
            labelsShort: ['År', 'Mdr', 'Dg', 'Timer', 'Min', 'Sek', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Nulstil',
            lapText: 'Omgang',
            hideText: 'Skjul',
            offText: 'Fra',
            onText: 'Til',
            backText: 'Tilbage',
            undoText: 'Fortryd'
        };
        R.i18n['en-GB'] = R.i18n['en-UK'] = {
            dateFormat: 'dd/mm/yy',
            timeFormat: 'HH:ii'
        };
        R.i18n.es = {
            setText: 'Aceptar',
            cancelText: 'Cancelar',
            clearText: 'Borrar',
            selectedText: '{count} seleccionado',
            selectedPluralText: '{count} seleccionados',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Domingo', 'Lunes', 'Martes', 'Mi&#xE9;rcoles', 'Jueves', 'Viernes', 'S&#xE1;bado'],
            dayNamesShort: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'S&#xE1;'],
            dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
            dayText: 'D&#237;a',
            hourText: 'Horas',
            minuteText: 'Minutos',
            monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
            monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
            monthText: 'Mes',
            secText: 'Segundos',
            timeFormat: 'HH:ii',
            yearText: 'A&ntilde;o',
            nowText: 'Ahora',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Hoy',
            firstDay: 1,
            dateText: 'Fecha',
            timeText: 'Tiempo',
            calendarText: 'Calendario',
            closeText: 'Cerrar',
            fromText: 'Iniciar',
            toText: 'Final',
            wholeText: 'Entero',
            fractionText: 'Fracción',
            unitText: 'Unidad',
            labels: ['Años', 'Meses', 'Días', 'Horas', 'Minutos', 'Segundos', ''],
            labelsShort: ['Año', 'Mes', 'Día', 'Hora', 'Min', 'Seg', ''],
            startText: 'Iniciar',
            stopText: 'Deténgase',
            resetText: 'Reinicializar',
            lapText: 'Lap',
            hideText: 'Esconder',
            backText: 'Atrás',
            undoText: 'Deshacer',
            offText: 'No',
            onText: 'Sí',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        var z = {
            gDaysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
            jDaysInMonth: [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29]
        };
        z.jalaliToGregorian = function(a1d, K1d, w1d) {
            a1d = parseInt(a1d);
            K1d = parseInt(K1d);
            w1d = parseInt(w1d);
            var b1d;
            var q1d = a1d - 979;
            var i1d = K1d - 1;
            var F1d = w1d - 1;
            var c1d = 365 * q1d + parseInt(q1d / 33) * 8 + parseInt((q1d % 33 + 3) / 4);
            for (b1d = 0; b1d < i1d; ++b1d) {
                c1d += z.jDaysInMonth[b1d];
            }
            c1d += F1d;
            var y1d = c1d + 79;
            var l1d = 1600 + 400 * parseInt(y1d / 146097);
            y1d = y1d % 146097;
            var H1d = true;
            if (y1d >= 36525) {
                y1d--;
                l1d += 100 * parseInt(y1d / 36524);
                y1d = y1d % 36524;
                if (y1d >= 365) {
                    y1d++;
                } else {
                    H1d = false;
                }
            }
            l1d += 4 * parseInt(y1d / 1461);
            y1d %= 1461;
            if (y1d >= 366) {
                H1d = false;
                y1d--;
                l1d += parseInt(y1d / 365);
                y1d = y1d % 365;
            }
            for (b1d = 0; y1d >= z.gDaysInMonth[b1d] + (b1d == 1 && H1d); b1d++) {
                y1d -= z.gDaysInMonth[b1d] + (b1d == 1 && H1d);
            }
            var x1d = b1d + 1;
            var P1d = y1d + 1;
            return [l1d, x1d, P1d];
        };
        z.checkDate = function(d1d, C1d, E1d) {
            return !(d1d < 0 || d1d > 32767 || C1d < 1 || C1d > 12 || E1d < 1 || E1d > z.jDaysInMonth[C1d - 1] + (C1d == 12 && (d1d - 979) % 33 % 4 === 0));
        };
        z.gregorianToJalali = function(p1d, M1d, Q1d) {
            p1d = parseInt(p1d);
            M1d = parseInt(M1d);
            Q1d = parseInt(Q1d);
            var t1d;
            var U1d = p1d - 1600;
            var m1d = M1d - 1;
            var X1d = Q1d - 1;
            var Z1d = 365 * U1d + parseInt((U1d + 3) / 4) - parseInt((U1d + 99) / 100) + parseInt((U1d + 399) / 400);
            for (t1d = 0; t1d < m1d; ++t1d) {
                Z1d += z.gDaysInMonth[t1d];
            }
            if (m1d > 1 && (U1d % 4 === 0 && U1d % 100 !== 0 || U1d % 400 === 0)) {
                ++Z1d;
            }
            Z1d += X1d;
            var A1d = Z1d - 79;
            var L1d = parseInt(A1d / 12053);
            A1d %= 12053;
            var Y1d = 979 + 33 * L1d + 4 * parseInt(A1d / 1461);
            A1d %= 1461;
            if (A1d >= 366) {
                Y1d += parseInt((A1d - 1) / 365);
                A1d = (A1d - 1) % 365;
            }
            for (t1d = 0; t1d < 11 && A1d >= z.jDaysInMonth[t1d]; ++t1d) {
                A1d -= z.jDaysInMonth[t1d];
            }
            var u1d = t1d + 1;
            var v1d = A1d + 1;
            return [Y1d, u1d, v1d];
        };
        R.i18n.fa = {
            setText: 'تاييد',
            cancelText: 'انصراف',
            clearText: 'واضح ',
            selectedText: '{count} منتخب',
            dateFormat: 'yy/mm/dd',
            dayNames: ['يکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج‌شنبه', 'جمعه', 'شنبه'],
            dayNamesShort: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
            dayNamesMin: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
            dayText: 'روز',
            hourText: 'ساعت',
            minuteText: 'دقيقه',
            monthNames: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
            monthNamesShort: ['فروردين', 'ارديبهشت', 'خرداد', 'تير', 'مرداد', 'شهريور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'],
            monthText: 'ماه',
            secText: 'ثانيه',
            timeFormat: 'HH:ii',
            timeWheels: 'iiHH',
            yearText: 'سال',
            nowText: 'اکنون',
            amText: 'ب',
            pmText: 'ص',
            todayText: 'امروز',
            getYear: function(o1d) {
                return z.gregorianToJalali(o1d.getFullYear(), o1d.getMonth() + 1, o1d.getDate())[0];
            },
            getMonth: function(J1d) {
                return --z.gregorianToJalali(J1d.getFullYear(), J1d.getMonth() + 1, J1d.getDate())[1];
            },
            getDay: function(k1d) {
                return z.gregorianToJalali(k1d.getFullYear(), k1d.getMonth() + 1, k1d.getDate())[2];
            },
            getDate: function(O1d, B1d, I1d, s1d, e1d, r1d, G1d) {
                if (B1d < 0) {
                    O1d += Math.floor(B1d / 12);
                    B1d = 12 + B1d % 12;
                }
                if (B1d > 11) {
                    O1d += Math.floor(B1d / 12);
                    B1d = B1d % 12;
                }
                var V1d = z.jalaliToGregorian(O1d, +B1d + 1, I1d);
                return new Date(V1d[0], V1d[1] - 1, V1d[2], s1d || 0, e1d || 0, r1d || 0, G1d || 0);
            },
            getMaxDayOfMonth: function(j1d, g1d) {
                var n1d = 31;
                while (z.checkDate(j1d, g1d + 1, n1d) === false) {
                    n1d--;
                }
                return n1d;
            },
            firstDay: 6,
            rtl: true,
            dateText: 'تاریخ ',
            timeText: 'زمان ',
            calendarText: 'تقویم',
            closeText: 'نزدیک',
            fromText: 'شروع ',
            toText: 'پایان',
            wholeText: 'تمام',
            fractionText: 'کسر',
            unitText: 'واحد',
            labels: ['سال', 'ماه', 'روز', 'ساعت', 'دقیقه', 'ثانیه', ''],
            labelsShort: ['سال', 'ماه', 'روز', 'ساعت', 'دقیقه', 'ثانیه', ''],
            startText: 'شروع',
            stopText: 'پايان',
            resetText: 'تنظیم مجدد',
            lapText: 'Lap',
            hideText: 'پنهان کردن',
            backText: 'پشت',
            undoText: 'واچیدن'
        };
        R.i18n.fr = {
            setText: 'Terminer',
            cancelText: 'Annuler',
            clearText: 'Effacer',
            selectedText: '{count} sélectionné',
            selectedPluralText: '{count} sélectionnés',
            dateFormat: 'dd/mm/yy',
            dayNames: ['&#68;imanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
            dayNamesShort: ['&#68;im.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
            dayNamesMin: ['&#68;', 'L', 'M', 'M', 'J', 'V', 'S'],
            dayText: 'Jour',
            monthText: 'Mois',
            monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
            monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'],
            hourText: 'Heures',
            minuteText: 'Minutes',
            secText: 'Secondes',
            timeFormat: 'HH:ii',
            yearText: 'Année',
            nowText: 'Maintenant',
            pmText: 'pm',
            amText: 'am',
            todayText: "Aujourd'hui",
            firstDay: 1,
            dateText: 'Date',
            timeText: 'Heure',
            calendarText: 'Calendrier',
            closeText: 'Fermer',
            fromText: 'Démarrer',
            toText: 'Fin',
            wholeText: 'Entier',
            fractionText: 'Fraction',
            unitText: 'Unité',
            labels: ['Ans', 'Mois', 'Jours', 'Heures', 'Minutes', 'Secondes', ''],
            labelsShort: ['Ans', 'Mois', 'Jours', 'Hrs', 'Min', 'Sec', ''],
            startText: 'Démarrer',
            stopText: 'Arrêter',
            resetText: 'Réinitialiser',
            lapText: 'Lap',
            hideText: 'Cachez',
            backText: 'Retour',
            undoText: 'Annuler',
            offText: 'Non',
            onText: 'Oui',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.he = {
            rtl: true,
            setText: 'שמירה',
            cancelText: 'ביטול',
            clearText: 'נקה',
            selectedText: '{count} נבחר',
            selectedPluralText: '{count} נבחרו',
            dateFormat: 'dd/mm/yy',
            dayNames: ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
            dayNamesShort: ["א'", "ב'", "ג'", "ד'", "ה'", "ו'", "ש'"],
            dayNamesMin: ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
            dayText: 'יום',
            hourText: 'שעות',
            minuteText: 'דקות',
            monthNames: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'],
            monthNamesShort: ["ינו", "פבר", "מרץ", "אפר", "מאי", "יונ", "יול", "אוג", "ספט", "אוק", "נוב", "דצמ"],
            monthText: 'חודש',
            secText: 'שניות',
            amText: 'am',
            pmText: 'pm',
            timeFormat: 'HH:ii',
            timeWheels: 'iiHH',
            yearText: 'שנה',
            nowText: 'עכשיו',
            firstDay: 0,
            dateText: 'תאריך',
            timeText: 'זמן',
            calendarText: 'תאריכון',
            closeText: 'סגירה',
            todayText: 'היום',
            eventText: 'מִקרֶה',
            eventsText: 'מִקרֶה',
            fromText: 'התחלה',
            toText: 'סיום',
            wholeText: 'כֹּל',
            fractionText: 'שבריר',
            unitText: 'יחידה',
            labels: ['שנים', 'חודשים', 'ימים', 'שעות', 'דקות', 'שניים', ''],
            labelsShort: ['שנים', 'חודשים', 'ימים', 'שעות', 'דקות', 'שניים', ''],
            startText: 'התחל',
            stopText: 'עצור',
            resetText: 'אתחול',
            lapText: 'הקפה',
            hideText: 'הסתר',
            offText: 'כיבוי',
            onText: 'הפעלה',
            backText: 'חזור',
            undoText: 'ביטול פעולה'
        };
        R.i18n.hu = {
            setText: 'OK',
            cancelText: 'Mégse',
            clearText: 'Törlés',
            selectedText: '{count} kiválasztva',
            dateFormat: 'yy.mm.dd.',
            dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
            dayNamesShort: ['Va', 'Hé', 'Ke', 'Sze', 'Csü', 'Pé', 'Szo'],
            dayNamesMin: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'],
            dayText: 'Nap',
            delimiter: '.',
            hourText: 'Óra',
            minuteText: 'Perc',
            monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Hónap',
            secText: 'Másodperc',
            timeFormat: 'H:ii',
            yearText: 'Év',
            nowText: 'Most',
            pmText: 'pm',
            amText: 'am',
            firstDay: 1,
            dateText: 'Dátum',
            timeText: 'Idő',
            calendarText: 'Naptár',
            todayText: 'Ma',
            prevMonthText: 'Előző hónap',
            nextMonthText: 'Következő hónap',
            prevYearText: 'Előző év',
            nextYearText: 'Következő év',
            closeText: 'Bezár',
            eventText: 'esemény',
            eventsText: 'esemény',
            fromText: 'Eleje',
            toText: 'Vége',
            wholeText: 'Egész',
            fractionText: 'Tört',
            unitText: 'Egység',
            labels: ['Év', 'Hónap', 'Nap', 'Óra', 'Perc', 'Másodperc', ''],
            labelsShort: ['Év', 'Hó.', 'Nap', 'Óra', 'Perc', 'Mp.', ''],
            startText: 'Indít',
            stopText: 'Megállít',
            resetText: 'Visszaállít',
            lapText: 'Lap',
            hideText: 'Elrejt',
            backText: 'Vissza',
            undoText: 'Visszavon',
            offText: 'Ki',
            onText: 'Be',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.it = {
            setText: 'OK',
            cancelText: 'Annulla',
            clearText: 'Chiarire',
            selectedText: '{count} selezionato',
            selectedPluralText: '{count} selezionati',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Domenica', 'Lunedì', 'Mertedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
            dayNamesShort: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],
            dayNamesMin: ['D', 'L', 'M', 'M', 'G', 'V', 'S'],
            dayText: 'Giorno',
            hourText: 'Ore',
            minuteText: 'Minuti',
            monthNames: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
            monthNamesShort: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'],
            monthText: 'Mese',
            secText: 'Secondi',
            timeFormat: 'HH:ii',
            yearText: 'Anno',
            nowText: 'Ora',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Oggi',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Volta',
            calendarText: 'Calendario',
            closeText: 'Chiudere',
            fromText: 'Inizio',
            toText: 'Fine',
            wholeText: 'Intero',
            fractionText: 'Frazione',
            unitText: 'Unità',
            labels: ['Anni', 'Mesi', 'Giorni', 'Ore', 'Minuti', 'Secondi', ''],
            labelsShort: ['Anni', 'Mesi', 'Gio', 'Ore', 'Min', 'Sec', ''],
            startText: 'Inizio',
            stopText: 'Arresto',
            resetText: 'Ripristina',
            lapText: 'Lap',
            hideText: 'Nascondi',
            backText: 'Indietro',
            undoText: 'Annulla',
            offText: 'Via',
            onText: 'Su',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.ja = {
            setText: 'セット',
            cancelText: 'キャンセル',
            clearText: 'クリア',
            selectedText: '{count} 選択',
            dateFormat: 'yy年mm月dd日',
            dayNames: ['日', '月', '火', '水', '木', '金', '土'],
            dayNamesShort: ['日', '月', '火', '水', '木', '金', '土'],
            dayNamesMin: ['日', '月', '火', '水', '木', '金', '土'],
            dayText: '日',
            hourText: '時',
            minuteText: '分',
            monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            monthText: '月',
            secText: '秒',
            timeFormat: 'HH:ii',
            yearText: '年',
            nowText: '今',
            pmText: '午後',
            amText: '午前',
            yearSuffix: '年',
            monthSuffix: '月',
            daySuffix: '日',
            todayText: '今日',
            dateText: '日付',
            timeText: '時間',
            calendarText: 'カレンダー',
            closeText: 'クローズ',
            fromText: '開始',
            toText: '終わり',
            wholeText: '全数',
            fractionText: '分数',
            unitText: '単位',
            labels: ['年間', '月間', '日間', '時間', '分', '秒', ''],
            labelsShort: ['年間', '月間', '日間', '時間', '分', '秒', ''],
            startText: '開始',
            stopText: '停止',
            resetText: 'リセット',
            lapText: 'ラップ',
            hideText: '隠す',
            backText: 'バック',
            undoText: 'アンドゥ'
        };
        R.i18n.lt = {
            setText: 'OK',
            cancelText: 'Atšaukti',
            clearText: 'Išvalyti',
            selectedText: 'Pasirinktas {count}',
            selectedPluralText: 'Pasirinkti {count}',
            dateFormat: 'yy-mm-dd',
            dayNames: ['Sekmadienis', 'Pirmadienis', 'Antradienis', 'Trečiadienis', 'Ketvirtadienis', 'Penktadienis', 'Šeštadienis'],
            dayNamesShort: ['S', 'Pr', 'A', 'T', 'K', 'Pn', 'Š'],
            dayNamesMin: ['S', 'Pr', 'A', 'T', 'K', 'Pn', 'Š'],
            dayText: 'Diena',
            hourText: 'Valanda',
            minuteText: 'Minutes',
            monthNames: ['Sausis', 'Vasaris', 'Kovas', 'Balandis', 'Gegužė', 'Birželis', 'Liepa', 'Rugpjūtis', 'Rugsėjis', 'Spalis', 'Lapkritis', 'Gruodis'],
            monthNamesShort: ['Sau', 'Vas', 'Kov', 'Bal', 'Geg', 'Bir', 'Lie', 'Rugp', 'Rugs', 'Spa', 'Lap', 'Gruo'],
            monthText: 'Mėnuo',
            secText: 'Sekundes',
            amText: 'am',
            pmText: 'pm',
            timeFormat: 'HH:ii',
            yearText: 'Metai',
            nowText: 'Dabar',
            todayText: 'Šiandien',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Laikas',
            calendarText: 'Kalendorius',
            closeText: 'Uždaryti',
            fromText: 'Nuo',
            toText: 'Iki',
            wholeText: 'Visas',
            fractionText: 'Frakcija',
            unitText: 'Vienetas',
            labels: ['Metai', 'Mėnesiai', 'Dienos', 'Valandos', 'Minutes', 'Sekundes', ''],
            labelsShort: ['m', 'mėn.', 'd', 'h', 'min', 's', ''],
            startText: 'Pradėti',
            stopText: 'Sustabdyti',
            resetText: 'Išnaujo',
            lapText: 'Ratas',
            hideText: 'Slėpti',
            backText: 'Atgal',
            undoText: 'Anuliuoti',
            offText: 'Išj.',
            onText: 'Įj.',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.nl = {
            setText: 'Instellen',
            cancelText: 'Annuleren',
            clearText: 'Duidelijk',
            selectedText: '{count} gekozen',
            dateFormat: 'dd-mm-yy',
            dayNames: ['zondag', 'maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
            dayNamesShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
            dayNamesMin: ['z', 'm', 'd', 'w', 'd', 'v', 'z'],
            dayText: 'Dag',
            hourText: 'Uur',
            minuteText: 'Minuten',
            monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
            monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
            monthText: 'Maand',
            secText: 'Seconden',
            timeFormat: 'HH:ii',
            yearText: 'Jaar',
            nowText: 'Nu',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Vandaag',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Tijd',
            calendarText: 'Kalender',
            closeText: 'Sluiten',
            fromText: 'Start',
            toText: 'Einde',
            wholeText: 'geheel',
            fractionText: 'fractie',
            unitText: 'eenheid',
            labels: ['Jaren', 'Maanden', 'Dagen', 'Uren', 'Minuten', 'Seconden', ''],
            labelsShort: ['j', 'm', 'd', 'u', 'min', 'sec', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Reset',
            lapText: 'Ronde',
            hideText: 'Verbergen',
            backText: 'Terug',
            undoText: 'Onged. maken',
            offText: 'Uit',
            onText: 'Aan',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.no = {
            setText: 'OK',
            cancelText: 'Avbryt',
            clearText: 'Tømme',
            selectedText: '{count} valgt',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
            dayNamesShort: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
            dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
            dayText: 'Dag',
            delimiter: '.',
            hourText: 'Time',
            minuteText: 'Minutt',
            monthNames: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
            monthText: 'Måned',
            secText: 'Sekund',
            timeFormat: 'HH:ii',
            yearText: 'År',
            nowText: 'Nå',
            pmText: 'pm',
            amText: 'am',
            todayText: 'I dag',
            firstDay: 1,
            dateText: 'Dato',
            timeText: 'Tid',
            calendarText: 'Kalender',
            closeText: 'Lukk',
            fromText: 'Start',
            toText: 'End',
            wholeText: 'Hele',
            fractionText: 'Fraksjon',
            unitText: 'Enhet',
            labels: ['År', 'Måneder', 'Dager', 'Timer', 'Minutter', 'Sekunder', ''],
            labelsShort: ['År', 'Mån', 'Dag', 'Time', 'Min', 'Sek', ''],
            startText: 'Start',
            stopText: 'Stopp',
            resetText: 'Tilbakestille',
            lapText: 'Runde',
            hideText: 'Skjul',
            backText: 'Tilbake',
            undoText: 'Angre',
            offText: 'Av',
            onText: 'På',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.pl = {
            setText: 'Zestaw',
            cancelText: 'Anuluj',
            clearText: 'Oczyścić',
            selectedText: 'Wybór: {count}',
            dateFormat: 'yy-mm-dd',
            dayNames: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'],
            dayNamesShort: ['Niedz.', 'Pon.', 'Wt.', 'Śr.', 'Czw.', 'Pt.', 'Sob.'],
            dayNamesMin: ['N', 'P', 'W', 'Ś', 'C', 'P', 'S'],
            dayText: 'Dzień',
            hourText: 'Godziny',
            minuteText: 'Minuty',
            monthNames: ['Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień'],
            monthNamesShort: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
            monthText: 'Miesiąc',
            secText: 'Sekundy',
            timeFormat: 'HH:ii',
            yearText: 'Rok',
            nowText: 'Teraz',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Dzisiaj',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Czas',
            calendarText: 'Kalendarz',
            closeText: 'Zakończenie',
            fromText: 'Rozpoczęcie',
            toText: 'Koniec',
            wholeText: 'Cały',
            fractionText: 'Ułamek',
            unitText: 'Jednostka',
            labels: ['Lata', 'Miesiąc', 'Dni', 'Godziny', 'Minuty', 'Sekundy', ''],
            labelsShort: ['R', 'M', 'Dz', 'Godz', 'Min', 'Sek', ''],
            startText: 'Rozpoczęcie',
            stopText: 'Zatrzymać',
            resetText: 'Zresetować',
            lapText: 'Zakładka',
            hideText: 'Ukryć',
            backText: 'Wróć',
            undoText: 'Cofnij',
            offText: 'Wył',
            onText: 'Wł',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n['pt-BR'] = {
            setText: 'Selecionar',
            cancelText: 'Cancelar',
            clearText: 'Claro',
            selectedText: '{count} selecionado',
            selectedPluralText: '{count} selecionados',
            dateFormat: 'dd/mm/yy',
            dayNames: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'],
            dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'],
            dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
            dayText: 'Dia',
            hourText: 'Hora',
            minuteText: 'Minutos',
            monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
            monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
            monthText: 'Mês',
            secText: 'Segundo',
            timeFormat: 'HH:ii',
            yearText: 'Ano',
            nowText: 'Agora',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Hoje',
            dateText: 'Data',
            timeText: 'Tempo',
            calendarText: 'Calendário',
            closeText: 'Fechar',
            fromText: 'In&iacute;cio',
            toText: 'Fim',
            wholeText: 'Inteiro',
            fractionText: 'Fração',
            unitText: 'Unidade',
            labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
            labelsShort: ['Ano', 'M&ecirc;s', 'Dia', 'Hora', 'Min', 'Seg', ''],
            startText: 'Começar',
            stopText: 'Pare',
            resetText: 'Reinicializar',
            lapText: 'Lap',
            hideText: 'Esconder',
            backText: 'Anterior',
            undoText: 'Desfazer',
            offText: 'Desl',
            onText: 'Lig',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n['pt-PT'] = {
            setText: 'Seleccionar',
            cancelText: 'Cancelar',
            clearText: 'Claro',
            selectedText: '{count} selecionado',
            selectedPluralText: '{count} selecionados',
            dateFormat: 'dd-mm-yy',
            dayNames: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'S&aacute;bado'],
            dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'S&aacute;b'],
            dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],
            dayText: 'Dia',
            hourText: 'Horas',
            minuteText: 'Minutos',
            monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
            monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
            monthText: 'M&ecirc;s',
            secText: 'Segundo',
            timeFormat: 'HH:ii',
            yearText: 'Ano',
            nowText: 'Actualizar',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Hoy',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Tempo',
            calendarText: 'Calend&aacute;rio',
            closeText: 'Fechar',
            fromText: 'In&iacute;cio',
            toText: 'Fim',
            wholeText: 'Inteiro',
            fractionText: 'Frac&ccedil;&atilde;o',
            unitText: 'Unidade',
            labels: ['Anos', 'Meses', 'Dias', 'Horas', 'Minutos', 'Segundos', ''],
            labelsShort: ['Ano', 'M&ecirc;s', 'Dia', 'Hora', 'Min', 'Seg', ''],
            startText: 'Come&ccedil;ar',
            stopText: 'Parar',
            resetText: 'Reinicializar',
            lapText: 'Lap',
            hideText: 'Esconder',
            backText: 'Anterior',
            undoText: 'Anular',
            offText: 'Desl',
            onText: 'Lig',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.ro = {
            setText: 'Setare',
            cancelText: 'Anulare',
            clearText: 'Ştergere',
            selectedText: '{count} selectat',
            selectedPluralText: '{count} selectate',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Duminică', 'Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
            dayNamesShort: ['Du', 'Lu', 'Ma', 'Mi', 'Jo', 'Vi', 'Sâ'],
            dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
            dayText: ' Ziua',
            delimiter: '.',
            hourText: ' Ore ',
            minuteText: 'Minute',
            monthNames: ['Ianuarie', 'Februarie', 'Martie', 'Aprilie', 'Mai', 'Iunie', 'Iulie', 'August', 'Septembrie', 'Octombrie', 'Noiembrie', 'Decembrie'],
            monthNamesShort: ['Ian.', 'Feb.', 'Mar.', 'Apr.', 'Mai', 'Iun.', 'Iul.', 'Aug.', 'Sept.', 'Oct.', 'Nov.', 'Dec.'],
            monthText: 'Luna',
            secText: 'Secunde',
            timeFormat: 'HH:ii',
            yearText: 'Anul',
            nowText: 'Acum',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Astăzi',
            firstDay: 1,
            dateText: 'Data',
            timeText: 'Ora',
            calendarText: 'Calendar',
            closeText: 'Închidere',
            fromText: 'Start',
            toText: 'Final',
            wholeText: 'Complet',
            fractionText: 'Parţial',
            unitText: 'Unitate',
            labels: ['Ani', 'Luni', 'Zile', 'Ore', 'Minute', 'Secunde', ''],
            labelsShort: ['Ani', 'Luni', 'Zile', 'Ore', 'Min.', 'Sec.', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Resetare',
            lapText: 'Tură',
            hideText: 'Ascundere',
            backText: 'Înapoi',
            undoText: 'Anulează',
            offText: 'Nu',
            onText: 'Da',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n['ru-UA'] = {
            setText: 'Установить',
            cancelText: 'Отменить',
            clearText: 'Очиститьr',
            selectedText: '{count} Вібрать',
            dateFormat: 'dd.mm.yy',
            dayNames: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
            dayNamesShort: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
            dayNamesMin: ['в', 'п', 'в', 'с', 'ч', 'п', 'с'],
            dayText: 'День',
            delimiter: '.',
            hourText: 'Часы',
            minuteText: 'Минуты',
            monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
            monthNamesShort: ['Янв.', 'Февр.', 'Март', 'Апр.', 'Май', 'Июнь', 'Июль', 'Авг.', 'Сент.', 'Окт.', 'Нояб.', 'Дек.'],
            monthText: 'Месяцы',
            secText: 'Сикунды',
            timeFormat: 'HH:ii',
            yearText: 'Год',
            nowText: 'Сейчас',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Cегодня',
            firstDay: 1,
            dateText: 'Дата',
            timeText: 'Время',
            calendarText: 'Календарь',
            closeText: 'Закрыть',
            fromText: 'Начало',
            toText: 'Конец',
            wholeText: 'Весь',
            fractionText: 'Часть',
            unitText: 'Единица',
            labels: ['Годы', ' Месяцы ', ' Дни ', ' Часы ', ' Минуты ', ' Секунды', ''],
            labelsShort: ['Год', 'Мес.', 'Дн.', 'Ч.', 'Мин.', 'Сек.', ''],
            startText: 'Старт',
            stopText: 'Стоп',
            resetText: ' Сброс ',
            lapText: ' Этап ',
            hideText: ' Скрыть ',
            backText: 'назад',
            undoText: 'ОтменитЬ',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n['ru-RU'] = R.i18n.ru = {
            setText: 'Установить',
            cancelText: 'Отмена',
            clearText: 'Очистить',
            selectedText: '{count} Выбрать',
            dateFormat: 'dd.mm.yy',
            dayNames: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
            dayNamesShort: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
            dayNamesMin: ['в', 'п', 'в', 'с', 'ч', 'п', 'с'],
            dayText: 'День',
            delimiter: '.',
            hourText: 'Час',
            minuteText: 'Минут',
            monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
            monthNamesShort: ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'],
            monthText: 'Месяц',
            secText: 'Секунд',
            timeFormat: 'HH:ii',
            yearText: 'Год',
            nowText: 'Сейчас',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Cегодня',
            firstDay: 1,
            dateText: 'Дата',
            timeText: 'Время',
            calendarText: 'Календарь',
            closeText: 'Закрыть',
            fromText: 'Начало',
            toText: 'Конец',
            wholeText: 'Целое',
            fractionText: 'Дробное',
            unitText: 'Единица',
            labels: ['Лет', 'Месяцев', 'Дней', 'Часов', 'Минут', 'Секунд', ''],
            labelsShort: ['Лет', 'Мес', 'Дн', 'Час', 'Мин', 'Сек', ''],
            startText: 'Старт',
            stopText: 'Стоп',
            resetText: 'Сбросить',
            lapText: 'Круг',
            hideText: 'Скрыть',
            backText: 'назад',
            undoText: 'ОтменитЬ',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.sk = {
            setText: 'Zadaj',
            cancelText: 'Zrušiť',
            clearText: 'Vymazať',
            selectedText: 'Označený: {count}',
            dateFormat: 'd.m.yy',
            dayNames: ['Nedeľa', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'],
            dayNamesShort: ['Ne', 'Po', 'Ut', 'St', 'Št', 'Pi', 'So'],
            dayNamesMin: ['N', 'P', 'U', 'S', 'Š', 'P', 'S'],
            dayText: 'Ďeň',
            hourText: 'Hodiny',
            minuteText: 'Minúty',
            monthNames: ['Január', 'Február', 'Marec', 'Apríl', 'Máj', 'Jún', 'Júl', 'August', 'September', 'Október', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Júl', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Mesiac',
            secText: 'Sekundy',
            timeFormat: 'H:ii',
            yearText: 'Rok',
            nowText: 'Teraz',
            amText: 'am',
            pmText: 'pm',
            todayText: 'Dnes',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Čas',
            calendarText: 'Kalendár',
            closeText: 'Zavrieť',
            fromText: 'Začiatok',
            toText: 'Koniec',
            wholeText: 'Celý',
            fractionText: 'Časť',
            unitText: 'Jednotka',
            labels: ['Roky', 'Mesiace', 'Dni', 'Hodiny', 'Minúty', 'Sekundy', ''],
            labelsShort: ['Rok', 'Mes', 'Dni', 'Hod', 'Min', 'Sec', ''],
            startText: 'Start',
            stopText: 'Stop',
            resetText: 'Resetovať',
            lapText: 'Etapa',
            hideText: 'Schovať',
            backText: 'Späť',
            undoText: 'Späť',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        R.i18n.sv = {
            setText: 'OK',
            cancelText: 'Avbryt',
            clearText: 'Klara',
            selectedText: '{count} vald',
            dateFormat: 'yy-mm-dd',
            dayNames: ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'],
            dayNamesShort: ['Sö', 'Må', 'Ti', 'On', 'To', 'Fr', 'Lö'],
            dayNamesMin: ['S', 'M', 'T', 'O', 'T', 'F', 'L'],
            dayText: 'Dag',
            hourText: 'Timme',
            minuteText: 'Minut',
            monthNames: ['Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December'],
            monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
            monthText: 'Månad',
            secText: 'Sekund',
            timeFormat: 'HH:ii',
            yearText: 'År',
            nowText: 'Nu',
            pmText: 'pm',
            amText: 'am',
            todayText: 'I dag',
            firstDay: 1,
            dateText: 'Datum',
            timeText: 'Tid',
            calendarText: 'Kalender',
            closeText: 'Stäng',
            fromText: 'Start',
            toText: 'Slut',
            wholeText: 'Hela',
            fractionText: 'Bråk',
            unitText: 'Enhet',
            labels: ['År', 'Månader', 'Dagar', 'Timmar', 'Minuter', 'Sekunder', ''],
            labelsShort: ['År', 'Mån', 'Dag', 'Tim', 'Min', 'Sek', ''],
            startText: 'Start',
            stopText: 'Stopp',
            resetText: 'Återställ',
            lapText: 'Varv',
            hideText: 'Dölj',
            backText: 'Tillbaka',
            undoText: 'Ångra',
            offText: 'Av',
            onText: 'På'
        };
        R.i18n.tr = {
            setText: 'Seç',
            cancelText: 'İptal',
            clearText: 'Temizleyin',
            selectedText: '{count} seçilmiş',
            dateFormat: 'dd.mm.yy',
            dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
            dayNamesShort: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt'],
            dayNamesMin: ['P', 'P', 'S', 'Ç', 'P', 'C', 'C'],
            dayText: 'Gün',
            delimiter: '.',
            hourText: 'Saat',
            minuteText: 'Dakika',
            monthNames: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
            monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
            monthText: 'Ay',
            secText: 'Saniye',
            timeFormat: 'HH:ii',
            yearText: 'Yıl',
            nowText: 'Şimdi',
            pmText: 'pm',
            amText: 'am',
            todayText: 'Bugün',
            firstDay: 1,
            dateText: 'Tarih',
            timeText: 'Zaman',
            calendarText: 'Takvim',
            closeText: 'Kapatmak',
            fromText: 'Başla',
            toText: 'Son',
            wholeText: 'Tam',
            fractionText: 'Kesir',
            unitText: 'Birim',
            labels: ['Yıl', 'Ay', 'Gün', 'Saat', 'Dakika', 'Saniye', ''],
            labelsShort: ['Yıl', 'Ay', 'Gün', 'Sa', 'Dak', 'Sn', ''],
            startText: 'Başla',
            stopText: 'Durdur',
            resetText: 'Sıfırla',
            lapText: 'Tur',
            hideText: 'Gizle',
            backText: 'Geri',
            undoText: 'Geri Al',
            offText: 'O',
            onText: 'I',
            decimalSeparator: ',',
            thousandsSeparator: '.'
        };
        R.i18n.zh = {
            setText: '确定',
            cancelText: '取消',
            clearText: '明确',
            selectedText: '{count} 选',
            dateFormat: 'yy/mm/dd',
            dayNames: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayText: '日',
            hourText: '时',
            minuteText: '分',
            monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
            monthNamesShort: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
            monthText: '月',
            secText: '秒',
            timeFormat: 'HH:ii',
            yearText: '年',
            nowText: '当前',
            pmText: '下午',
            amText: '上午',
            todayText: '今天',
            dateText: '日',
            timeText: '时间',
            calendarText: '日历',
            closeText: '关闭',
            fromText: '开始时间',
            toText: '结束时间',
            wholeText: '合计',
            fractionText: '分数',
            unitText: '单位',
            labels: ['年', '月', '日', '小时', '分钟', '秒', ''],
            labelsShort: ['年', '月', '日', '点', '分', '秒', ''],
            startText: '开始',
            stopText: '停止',
            resetText: '重置',
            lapText: '圈',
            hideText: '隐藏',
            backText: '背部',
            undoText: '复原',
            offText: '关闭',
            onText: '开启',
            decimalSeparator: ',',
            thousandsSeparator: ' '
        };
        (function() {
            var S1d = R,
                h1d = S1d.themes,
                D1d = S1d.$;
            h1d.frame['android-holo'] = {};
            h1d.scroller['android-holo'] = D1d.extend({}, h1d.frame['android-holo'], {
                dateDisplay: 'Mddyy',
                rows: 5,
                minWidth: 76,
                height: 36,
                showLabel: false,
                selectedLineHeight: true,
                selectedLineBorder: 2,
                useShortLabels: true,
                icon: {
                    filled: 'star3',
                    empty: 'star'
                },
                btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down6',
                btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up6'
            });
            h1d.form['android-holo'] = {};
        }());
        (function() {
            var z2d = R,
                R2d = z2d.themes,
                W1d = z2d.$;
            R2d.frame.bootstrap = {
                disabledClass: 'disabled',
                activeClass: 'btn-primary',
                activeTabClass: 'active',
                todayClass: 'text-primary',
                onMarkupInserted: function(T2d) {
                    var N2d = W1d(T2d.target);
                    W1d('.mbsc-fr-popup', N2d).addClass('popover');
                    W1d('.mbsc-fr-w', N2d).addClass('popover-content');
                    W1d('.mbsc-fr-hdr', N2d).addClass('popover-title');
                    W1d('.mbsc-fr-arr-i', N2d).addClass('popover');
                    W1d('.mbsc-fr-arr', N2d).addClass('arrow');
                    W1d('.mbsc-fr-btn', N2d).addClass('btn btn-default');
                    W1d('.mbsc-fr-btn-s .mbsc-fr-btn', N2d).removeClass('btn-default').addClass('btn btn-primary');
                    W1d('.mbsc-sc-btn-plus', N2d).addClass('glyphicon glyphicon-chevron-down');
                    W1d('.mbsc-sc-btn-minus', N2d).addClass('glyphicon glyphicon-chevron-up');
                    W1d('.mbsc-cal-next .mbsc-cal-btn-txt', N2d).prepend('<i class="glyphicon glyphicon-chevron-right"></i>');
                    W1d('.mbsc-cal-prev .mbsc-cal-btn-txt', N2d).prepend('<i class="glyphicon glyphicon-chevron-left"></i>');
                    W1d('.mbsc-cal-tabs ul', N2d).addClass('nav nav-tabs');
                    W1d('.mbsc-cal-sc-c', N2d).addClass('popover');
                    W1d('.mbsc-cal-week-nrs-c', N2d).addClass('popover');
                    W1d('.mbsc-cal-events', N2d).addClass('popover');
                    W1d('.mbsc-cal-events-arr', N2d).addClass('arrow');
                    W1d('.mbsc-range-btn', N2d).addClass('btn btn-sm btn-small btn-default');
                    W1d('.mbsc-np-btn', N2d).addClass('btn btn-default');
                    W1d('.mbsc-sel-filter-cont', N2d).removeClass('mbsc-input');
                    W1d('.mbsc-sel-filter-input', N2d).addClass('form-control');
                },
                onPosition: function(f2d) {
                    setTimeout(function() {
                        W1d('.mbsc-fr-bubble-top, .mbsc-fr-bubble-top .mbsc-fr-arr-i', f2d.target).removeClass('bottom').addClass('top');
                        W1d('.mbsc-fr-bubble-bottom, .mbsc-fr-bubble-bottom .mbsc-fr-arr-i', f2d.target).removeClass('top').addClass('bottom');
                    }, 10);
                }
            };
            R2d.scroller.bootstrap = W1d.extend({}, R2d.frame.bootstrap, {
                dateDisplay: 'Mddyy',
                btnCalPrevClass: '',
                btnCalNextClass: '',
                selectedLineHeight: true,
                onEventBubbleShow: function(b2d) {
                    var y2d = W1d(b2d.eventList);
                    W1d('.mbsc-cal-event-list', y2d).addClass('list-group');
                    W1d('.mbsc-cal-event', y2d).addClass('list-group-item');
                    setTimeout(function() {
                        if (y2d.hasClass('mbsc-cal-events-b')) {
                            y2d.removeClass('top').addClass('bottom');
                        } else {
                            y2d.removeClass('bottom').addClass('top');
                        }
                    }, 10);
                }
            });
            R2d.menustrip.bootstrap = {
                wrapperClass: 'popover panel panel-default',
                groupClass: 'btn-group',
                activeClass: 'btn-primary',
                disabledClass: 'disabled',
                itemClass: 'btn btn-default'
            };
        }());
        (function() {
            var H2d = R,
                l2d = H2d.themes,
                q2d = H2d.$;
            l2d.frame.ios = {
                display: 'bottom',
                headerText: false,
                btnWidth: false,
                deleteIcon: 'ios-backspace',
                scroll3d: true
            };
            l2d.scroller.ios = q2d.extend({}, l2d.frame.ios, {
                rows: 5,
                height: 34,
                minWidth: 55,
                selectedLineHeight: true,
                selectedLineBorder: 1,
                showLabel: false,
                useShortLabels: true,
                btnPlusClass: 'mbsc-ic mbsc-ic-arrow-down5',
                btnMinusClass: 'mbsc-ic mbsc-ic-arrow-up5',
                checkIcon: 'ion-ios7-checkmark-empty',
                filterClearIcon: 'ion-close-circled',
                dateDisplay: 'MMdyy',
                btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left5',
                btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right5'
            });
            l2d.listview.ios = {
                leftArrowClass: 'mbsc-ic-ion-ios7-arrow-back',
                rightArrowClass: 'mbsc-ic-ion-ios7-arrow-forward'
            };
            l2d.form.ios = {};
        }());
        (function() {
            function d2d(J2d, v2d, k2d, B2d) {
                var u2d, o2d;
                J2d.off('.mbsc-ripple').on('touchstart.mbsc-ripple mousedown.mbsc-ripple', v2d, function(V2d) {
                    if (E2d(V2d, this)) {
                        u2d = w2d(V2d, 'X');
                        o2d = w2d(V2d, 'Y');
                        K2d = c2d(this);
                        if (!K2d.hasClass(k2d) && !K2d.hasClass(B2d)) {
                            x2d(K2d, V2d);
                        } else {
                            K2d = null;
                        }
                    }
                }).on('touchmove.mbsc-ripple mousemove.mbsc-ripple', v2d, function(O2d) {
                    if (K2d && Math.abs(w2d(O2d, 'X') - u2d) > 9 || Math.abs(w2d(O2d, 'Y') - o2d) > 9) {
                        i2d(F2d);
                        K2d = null;
                    }
                }).on('touchend.mbsc-ripple touchcancel.mbsc-ripple mouseleave.mbsc-ripple mouseup.mbsc-ripple', v2d, function() {
                    if (K2d) {
                        setTimeout(function() {
                            i2d(F2d);
                        }, 100);
                        K2d = null;
                    }
                });
            }

            function i2d(L2d) {
                setTimeout(function() {
                    if (L2d) {
                        L2d.removeClass('mbsc-ripple-visible');
                        setTimeout(function() {
                            L2d.remove();
                        }, 2000);
                    }
                }, 100);
            }

            function x2d(U2d, p2d) {
                var Z2d = w2d(p2d, 'X', true),
                    M2d = w2d(p2d, 'Y', true),
                    A2d = U2d.offset(),
                    Q2d = Z2d - A2d.left,
                    m2d = M2d - A2d.top,
                    Y2d = Math.max(Q2d, U2d[0].offsetWidth - Q2d),
                    X2d = Math.max(m2d, U2d[0].offsetHeight - m2d),
                    t2d = 2 * Math.sqrt(Math.pow(Y2d, 2) + Math.pow(X2d, 2));
                i2d(F2d);
                F2d = c2d('<span class="mbsc-ripple"></span>').css({
                    width: t2d,
                    height: t2d,
                    top: M2d - A2d.top - t2d / 2,
                    left: Z2d - A2d.left - t2d / 2
                }).appendTo(U2d);
                setTimeout(function() {
                    F2d.addClass('mbsc-ripple-scaled mbsc-ripple-visible');
                }, 10);
            }
            var K2d, F2d, P2d = R,
                c2d = P2d.$,
                a2d = P2d.themes,
                C2d = P2d.util,
                E2d = C2d.testTouch,
                w2d = C2d.getCoord;
            a2d.frame.material = {
                headerText: false,
                btnWidth: false,
                deleteIcon: 'material-backspace',
                onMarkupReady: function(I2d) {
                    d2d(c2d(I2d.target), '.mbsc-fr-btn-e', 'mbsc-fr-btn-d', 'mbsc-fr-btn-nhl');
                }
            };
            a2d.scroller.material = c2d.extend({}, a2d.frame.material, {
                showLabel: false,
                selectedLineBorder: 2,
                weekDays: 'min',
                icon: {
                    filled: 'material-star',
                    empty: 'material-star-outline'
                },
                checkIcon: 'material-check',
                btnPlusClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-down',
                btnMinusClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-up',
                btnCalPrevClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-left',
                btnCalNextClass: 'mbsc-ic mbsc-ic-material-keyboard-arrow-right',
                onEventBubbleShow: function(G2d) {
                    var s2d = c2d(G2d.eventList),
                        e2d = c2d(G2d.target).closest('.mbsc-cal-row').index() < 2,
                        r2d = c2d('.mbsc-cal-event-color', s2d).eq(e2d ? 0 : -1).css('background-color');
                    c2d('.mbsc-cal-events-arr', s2d).css('border-color', e2d ? 'transparent transparent ' + r2d + ' transparent' : r2d + 'transparent transparent transparent');
                }
            });
            a2d.listview.material = {
                leftArrowClass: 'mbsc-ic-material-keyboard-arrow-left',
                rightArrowClass: 'mbsc-ic-material-keyboard-arrow-right',
                onItemActivate: function(n2d) {
                    x2d(c2d(n2d.target), n2d.domEvent);
                },
                onItemDeactivate: function() {
                    i2d(F2d);
                },
                onSlideStart: function(j2d) {
                    c2d('.mbsc-ripple', j2d.target).remove();
                },
                onSortStart: function(g2d) {
                    c2d('.mbsc-ripple', g2d.target).remove();
                }
            };
            a2d.menustrip.material = {
                onInit: function() {
                    d2d(c2d(this), '.mbsc-ms-item', 'mbsc-btn-d', 'mbsc-btn-nhl');
                },
                onMarkupInit: function() {
                    c2d('.mbsc-ripple', this).remove();
                },
                onDestroy: function() {
                    c2d(this).off('.mbsc-ripple');
                }
            };
            a2d.form.material = {
                onControlActivate: function(D2d) {
                    var S2d, h2d = c2d(D2d.target);
                    if (h2d[0].type == 'button' || h2d[0].type == 'submit') {
                        S2d = h2d;
                    }
                    if (h2d.attr('data-role') == 'segmented') {
                        S2d = h2d.next();
                    }
                    if (h2d.hasClass('mbsc-stepper-control') && !h2d.hasClass('mbsc-step-disabled')) {
                        S2d = h2d.find('.mbsc-segmented-content');
                    }
                    if (S2d) {
                        x2d(S2d, D2d.domEvent);
                    }
                },
                onControlDeactivate: function() {
                    i2d(F2d);
                }
            };
        }());
        (function() {
            var z6d = R,
                W2d = z6d.$,
                R6d = z6d.themes;
            R6d.frame.wp = {
                headerText: false,
                deleteIcon: 'backspace4',
                setIcon: 'checkmark',
                cancelIcon: 'close',
                closeIcon: 'close',
                clearIcon: 'close',
                okIcon: 'checkmark',
                nowIcon: 'loop2',
                startIcon: 'play3',
                stopIcon: 'pause2',
                resetIcon: 'stop2',
                lapIcon: 'loop2',
                btnWidth: false
            };
            R6d.scroller.wp = W2d.extend({}, R6d.frame.wp, {
                minWidth: 76,
                height: 76,
                dateDisplay: 'mmMMddDDyy',
                showLabel: false,
                icon: {
                    filled: 'star3',
                    empty: 'star'
                },
                btnCalPrevClass: 'mbsc-ic mbsc-ic-arrow-left2',
                btnCalNextClass: 'mbsc-ic mbsc-ic-arrow-right2',
                btnPlusClass: 'mbsc-ic mbsc-ic-plus',
                btnMinusClass: 'mbsc-ic mbsc-ic-minus',
                onMarkupInserted: function(l6d, H6d) {
                    function q6d(c6d) {
                        return W2d.isArray(T6d.readonly) ? T6d.readonly[c6d] : T6d.readonly;
                    }
                    var N6d, f6d, b6d, y6d = W2d(l6d.target),
                        T6d = H6d.settings;
                    W2d('.mbsc-sc-whl', y6d).on('touchstart mousedown wheel mousewheel', function(K6d) {
                        if (K6d.type === 'mousedown' && f6d || q6d(W2d(this).attr('data-index'))) {
                            return;
                        }
                        f6d = K6d.type === 'touchstart';
                        N6d = true;
                        b6d = W2d(this).hasClass('mbsc-sc-whl-wpa');
                        W2d('.mbsc-sc-whl', y6d).removeClass('mbsc-sc-whl-wpa');
                        W2d(this).addClass('mbsc-sc-whl-wpa');
                    }).on('touchmove mousemove', function() {
                        N6d = false;
                    }).on('touchend mouseup', function(w6d) {
                        if (N6d && b6d && W2d(w6d.target).closest('.mbsc-sc-itm').hasClass('mbsc-sc-itm-sel')) {
                            W2d(this).removeClass('mbsc-sc-whl-wpa');
                        }
                        if (w6d.type === 'mouseup') {
                            f6d = false;
                        }
                        N6d = false;
                    });
                }
            });
            R6d.form.wp = {};
        }());
        R.customTheme('android-holo-light', 'android-holo');
        R.customTheme('ios-dark', 'ios');
        R.customTheme('material-dark', 'material');
        R.customTheme('mobiscroll-dark', 'mobiscroll');
        R.customTheme('wp-light', 'wp');
        (function() {
            var F6d, a6d = R,
                i6d = a6d.platform,
                P6d = a6d.themes,
                x6d = a6d.$;
            if (i6d.name == 'android') {
                F6d = i6d.majorVersion >= 5 ? 'material' : 'android-holo';
            } else if (i6d.name == 'ios') {
                F6d = 'ios';
            } else if (i6d.name == 'wp') {
                F6d = 'wp';
            }
            R.setAutoTheme = function() {
                x6d.each(P6d.frame, function(C6d, d6d) {
                    if (d6d.baseTheme == F6d && C6d != 'android-holo-light' && C6d != 'material-dark' && C6d != 'wp-light' && C6d != 'ios-dark') {
                        a6d.autoTheme = C6d;
                        return false;
                    } else if (C6d == F6d) {
                        a6d.autoTheme = C6d;
                    }
                });
            };
            R.setAutoTheme();
        }());
        return R;
    }();

    return mobiscroll;
	
	
	
}));

